{ coreutils , fetchFromGitHub , findutils , gawk , git , gnugrep , gnused , jq , lib , makeWrapper , ncurses , nix-gitignore , stdenv , tree-grepper }: stdenv.mkDerivation { name = "anissue"; src = nix-gitignore.gitignoreSource [ ] ./.; nativeBuildInputs = [ makeWrapper ]; buildPhase = ":"; installPhase = '' mkdir -p $out/{bin,share} for bin in src/*.sh; do cp $bin $out/share/$(basename $bin) wrapProgram $out/share/$(basename $bin) \ --set PATH ${lib.makeBinPath [ coreutils findutils gawk git gnugrep gnused jq ncurses tree-grepper ]} done ln -s $out/share/extract.sh $out/bin/anissue ''; }