1 { lib, stdenv, haskellPackages, fetchFromGitHub }:
5 version = "2020-03-23";
7 src = fetchFromGitHub {
10 rev = "7706b45429ff22c35bab575734feb2926bf8840b";
11 sha256 = "0yiqljamcj9x8z801bwj7r30sskrwv4rm6sdf39j83jqql1fyq7y";
16 (haskellPackages.ghcWithPackages (hs: with hs; [ posix-escape ]))
23 ghc -O2 $src/nix-script.hs -o $out/bin/nix-script -odir . -hidir .
30 ln -s $out/bin/nix-script $out/bin/nix-scripti
36 description = "Shebang for running inside nix-shell";
37 homepage = "https://github.com/bennofs/nix-script";
38 license = licenses.bsd3;
39 maintainers = with maintainers; [ bennofs rnhmjoj ];
40 platforms = haskellPackages.ghc.meta.platforms;