about summary refs log tree commit diff
path: root/pkgs/applications/networking/esniper
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-07-27 01:21:50 +0200
committerPeter Simons <simons@cryp.to>2012-07-27 01:23:17 +0200
commit3acaeefabd42671decae74dffac280bf5443b0a7 (patch)
treeb41c4cc25a924b3166e7aa8f1ee07f421843d0c7 /pkgs/applications/networking/esniper
parent84b4a086dd616035d9c0cd40c95695eebd354efd (diff)
esniper: remedy some impurities
Diffstat (limited to 'pkgs/applications/networking/esniper')
-rw-r--r--pkgs/applications/networking/esniper/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/applications/networking/esniper/default.nix b/pkgs/applications/networking/esniper/default.nix
index dda0755a73838..0a136014a3e09 100644
--- a/pkgs/applications/networking/esniper/default.nix
+++ b/pkgs/applications/networking/esniper/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, openssl, curl }:
+{ stdenv, fetchurl, openssl, curl, coreutils, gawk }:
 
 stdenv.mkDerivation {
   name = "esniper-2.27.0";
@@ -11,7 +11,9 @@ stdenv.mkDerivation {
   buildInputs = [openssl curl];
 
   postInstall = ''
-    sed -e  "2i export PATH=\"$out/bin:\$PATH\"" <"frontends/snipe" >"$out/bin/snipe"
+    sed <"frontends/snipe" >"$out/bin/snipe" \
+      -e "2i export PATH=\"$out/bin:${coreutils}/bin:${gawk}/bin\"" \
+      -e "2i alias which='type -p'"
     chmod 555 "$out/bin/snipe"
   '';
 
@@ -24,5 +26,3 @@ stdenv.mkDerivation {
     maintainers = [ stdenv.lib.maintainers.simons ];
   };
 }
-
-