anchor.diff:  
     HOSTARCH =
       if stdenv.system == "x86_64-linux" then "x64"
  -    else if stdenv.system == "i686-linux" then "ia32" else "null";
  +    else if stdenv.system == "i686-linux" then "ia32"
  +    else "null";
   
     patchPhase = ''
       sed -e 's|-DEFI_FUNCTION_WRAPPER|-DEFI_FUNCTION_WRAPPER -maccumulate-outgoing-args|g' -i Make.common
  
positive.code: 
  stdenv.mkDerivation rec {
  
    name = "refind-${version}";
    srcName = "refind-src-${version}";
    version = "0.9.2";
  
    src = fetchurl {
      url = "http://downloads.sourceforge.net/project/refind/${version}/${srcName}.zip";
      sha256 = "0ai150rzx20sfl92j6y1p6qnyy0wbmazrlp2fg19acs98qyxl8lh";
    };
  
  
negative.code:       if stdenv.system == "x86_64-linux" then "elf_x86_64_efi.lds"
        else if stdenv.system == "i686-linux" then "elf_ia32_efi.lds" else "null";
      in ''
        make prefix= EFIINC=${gnu-efi}/include/efi EFILIB=${gnu-efi}/lib GNUEFILIB=${gnu-efi}/lib EFICRT0=${gnu-efi}/lib LDSCRIPT=${gnu-efi}/lib/${ldScript} gnuefi fs_gnuefi
      '';
  
    installPhase = ''
  