anchor.diff:      # Post-install fixes
       sed -e "s|^ThisDir=.*|ThisDir=$out/share/refind/|g" -i $out/bin/refind-install
       sed -e "s|^RefindDir=.*|RefindDir=$out/share/refind/|g" -i $out/bin/refind-install
  -    sed -e "s|^ThisScript=.*|ThisScript=$out/bin/refind-install|g" -i $out/bin/refind-install
     '';
   
     meta = with stdenv.lib; {
  -    version = "0.9.2";
  +    version = "0.10.3";
       description = "A graphical {,U}EFI boot manager";
       longDescription = ''
         rEFInd is a graphical boot manager for EFI- and UEFI-based
  
positive.code:     rm -f $out/share/refind/fonts/mkfont.sh
  
      # icons
      install -D -m0644 icons/* $out/share/refind/icons/
  
      # images
      install -D -m0644 images/*.{png,bmp} $out/share/refind/images/
  
negative.code:   srcName = "refind-src-${meta.version}";
  
    src = fetchurl {
      url = "mirror://sourceforge/project/refind/${meta.version}/${srcName}.tar.gz";
      sha256 = "1r2qp29mz08lx36i7x52i2598773bxvfhwryd954ssq2baifjav5";
    };
  
    patches = [
      (fetchpatch {
        url = "https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=831258;filename=002-efiprot.patch;msg=10";
        sha256 = "17h03h5mgkpamcj9jcq8h6x2admpknysrbdwccg7yxirlc52fc2s";
        name = "002-efiprot.patch";
      })
    ];
  
    buildInputs = [ gnu-efi efibootmgr dosfstools imagemagick ];
  
    HOSTARCH =
      if stdenv.system == "x86_64-linux" then "x64"
      else if stdenv.system == "i686-linux" then "ia32"
      else "null";
  
    postPatch = ''
      sed -e 's|-DEFI_FUNCTION_WRAPPER|-DEFI_FUNCTION_WRAPPER -maccumulate-outgoing-args|g' -i Make.common
      sed -e 's|-DEFIX64|-DEFIX64 -maccumulate-outgoing-args|g' -i Make.common
      sed -e 's|-m64|-maccumulate-outgoing-args -m64|g' -i filesystems/Make.gnuefi
  