{ coreutils , docopts , fetchFromGitHub , findutils , gawk , git , gnugrep , gnused , jq , lib , makeWrapper , ncurses , nix-gitignore , stdenv }: 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) \ --argv0 ''' \ --set PATH ${lib.makeBinPath [ git ]} done ln -s $out/share/anissue.sh $out/bin/anissue ''; }