diff options
author | Peter Simons <simons@cryp.to> | 2012-07-27 01:50:50 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2012-07-27 01:50:50 +0200 |
commit | af6c1c5ef34b958acfcc871050057b96271f8d9d (patch) | |
tree | 200e382089e080c549c81db85dd16867e1517c3c /pkgs/applications/networking/esniper | |
parent | 48bce09773b20787ffc31f856099eeec8b2046fe (diff) |
esniper: the 'which' alias won't work when run in a subshell; we need the real thing
Diffstat (limited to 'pkgs/applications/networking/esniper')
-rw-r--r-- | pkgs/applications/networking/esniper/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/applications/networking/esniper/default.nix b/pkgs/applications/networking/esniper/default.nix index a2a64ead50869..8dedd4013b9a2 100644 --- a/pkgs/applications/networking/esniper/default.nix +++ b/pkgs/applications/networking/esniper/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, openssl, curl, coreutils, gawk, bash }: +{ stdenv, fetchurl, openssl, curl, coreutils, gawk, bash, which }: stdenv.mkDerivation { name = "esniper-2.27.0"; @@ -12,8 +12,7 @@ stdenv.mkDerivation { postInstall = '' sed <"frontends/snipe" >"$out/bin/snipe" \ - -e "2i export PATH=\"$out/bin:${coreutils}/bin:${gawk}/bin:${bash}/bin\"" \ - -e "2i alias which='type -p'" + -e "2i export PATH=\"$out/bin:${coreutils}/bin:${gawk}/bin:${bash}/bin:${which}/bin:\$PATH\"" chmod 555 "$out/bin/snipe" ''; |