anchor.diff:      echo 'echo "Compile grub2 with { kbdcompSupport = true; } to enable support for this command."' >> util/grub-kbdcomp.in
     '';
   
  -  nativeBuildInputs = [ bison flex python3 pkg-config autoconf automake ];
  -  buildInputs = [ ncurses libusb-compat-0_1 freetype gettext lvm2 fuse libtool ]
  +  nativeBuildInputs = [ bison flex python3 pkg-config autoconf automake gettext ];
  +  buildInputs = [ ncurses libusb-compat-0_1 freetype lvm2 fuse libtool ]
       ++ optional doCheck qemu
       ++ optional zfsSupport zfs;
  +
  +  strictDeps = true;
   
     hardeningDisable = [ "all" ];
   
  
positive.code: { lib, stdenv, fetchgit, flex, bison, python3, autoconf, automake, gnulib, libtool
  , gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2, unifont, pkg-config
  , fuse # only needed for grub-mount
  , runtimeShell
  , zfs ? null
  
negative.code:       substituteInPlace ./configure --replace '/usr/share/fonts/unifont' '${unifont}/share/fonts'
      '';
  
    configureFlags = [
      "--enable-grub-mount" # dep of os-prober
      "BUILD_CC=${pkgsBuildBuild.stdenv.cc}/bin/cc"
    ]
      ++ optional zfsSupport "--enable-libzfs"
      ++ optionals efiSupport [ "--with-platform=efi" "--target=${efiSystemsBuild.${stdenv.hostPlatform.system}.target}" "--program-prefix=" ]
      ++ optionals xenSupport [ "--with-platform=xen" "--target=${efiSystemsBuild.${stdenv.hostPlatform.system}.target}"];
  