anchor.diff: -{ lib, stdenv, fetchurl, fetchgit, fetchpatch, autogen, flex, bison, python2, autoconf, automake
  -, gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2
  +{ lib
  +, stdenv
  +, fetchurl
  +, fetchFromGitHub
  +, fetchpatch
  +, autogen
  +, flex
  +, bison
  +, python2
  +, autoconf
  +, automake
  +, gettext
  +, ncurses
  +, libusb-compat-0_1
  +, freetype
  +, qemu
  +, lvm2
   , for_HP_laptop ? false
   }:
   
  
positive.code:   ];
  
    # save target that grub is compiled for
    grubTarget = if inPCSystems
                 then "${pcSystems.${stdenv.hostPlatform.system}.target}-pc"
                 else "";
  
    doCheck = false;
    # On -j16 races with early header creation:
  
negative.code:   pname = "trustedGRUB2";
    inherit version;
  
    src = fetchFromGitHub {
      owner = "Sirrix-AG";
      repo = "TrustedGRUB2";
      rev = version;
      sha256 =
        if for_HP_laptop
        then "sha256-H1JzT/RgnbHqnW2/FmvXFuI6gnHI2vQU3W1iq2FqwJw="
        else "sha256-k8DGHjTIpnjWw7GNN2kyR8rRl2MAq1xkfOndd0znLns=";
    };
  
    nativeBuildInputs = [ autogen flex bison python2 autoconf automake ];
    buildInputs = [ ncurses libusb-compat-0_1 freetype gettext lvm2 ]
  