anchor.diff:        interpreter = "${bash}/bin/bash";
   
         # packages resholve should resolve executables from
  -      inputs = [ coreutils gawk util-linux ];
  +      inputs = [ coreutils gawk gnugrep pacman util-linux ];
   
         # TODO: no good way to resolve mount/umount in Nix builds for now
         # see https://github.com/abathur/resholve/issues/29
  
positive.code: , bash
  , coreutils
  , gawk
  , gnum4
  , util-linux
  }:
  
  resholve.mkDerivation rec {
    pname = "arch-install-scripts";
    version = "24";
  
    src = fetchFromGitHub {
      owner = "archlinux";
      repo = "arch-install-scripts";
      rev = "v${version}";
      sha256 = "06rydiliis34lbz5fsayhbczs1xqi1a80jnhxafpjf6k3rfji6iq";
    };
  
    nativeBuildInputs = [ asciidoc gnum4 ];
  
    preBuild = ''
      substituteInPlace ./Makefile \
        --replace "PREFIX = /usr/local" "PREFIX ?= /usr/local"
  
      # https://github.com/archlinux/arch-install-scripts/pull/10
      substituteInPlace ./common \
        --replace "print '%s' \"\$1\"" "printf '%s' \"\$1\""
    '';
  
    installFlags = [ "PREFIX=$(out)" ];
  
negative.code:     '';
      homepage = "https://github.com/archlinux/arch-install-scripts";
      license = licenses.gpl2Only;
      maintainers = with maintainers; [ samlukeyes123 ];
      platforms = platforms.linux;
    };
  }
  