anchor.diff:  { stdenv, fetchurl, fetchFromSavannah, autogen, flex, bison, python, autoconf, automake
   , gettext, ncurses, libusb, freetype, qemu, devicemapper, unifont, pkgconfig
  +, fuse # only needed for grub-mount
   , zfs ? null
   , efiSupport ? false
   , zfsSupport ? true
  
positive.code: 
    patches = [ ./fix-bash-completion.patch ];
  
    configureFlags = optional zfsSupport "--enable-libzfs"
      ++ optionals efiSupport [ "--with-platform=efi" "--target=${efiSystemsBuild.${stdenv.system}.target}" "--program-prefix=" ]
      ++ optionals xenSupport [ "--with-platform=xen" "--target=${efiSystemsBuild.${stdenv.system}.target}"];
  
  
negative.code:   };
  
    nativeBuildInputs = [ bison flex python pkgconfig ];
    buildInputs = [ ncurses libusb freetype gettext devicemapper fuse ]
      ++ optional doCheck qemu
      ++ optional zfsSupport zfs;
  
  