esniper: the 'which' alias won't work when run in a subshell; we need the real thing

This commit is contained in:
Peter Simons 2012-07-27 01:50:50 +02:00
parent 48bce09773
commit af6c1c5ef3

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, openssl, curl, coreutils, gawk, bash }: { stdenv, fetchurl, openssl, curl, coreutils, gawk, bash, which }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "esniper-2.27.0"; name = "esniper-2.27.0";
@ -12,8 +12,7 @@ stdenv.mkDerivation {
postInstall = '' postInstall = ''
sed <"frontends/snipe" >"$out/bin/snipe" \ sed <"frontends/snipe" >"$out/bin/snipe" \
-e "2i export PATH=\"$out/bin:${coreutils}/bin:${gawk}/bin:${bash}/bin\"" \ -e "2i export PATH=\"$out/bin:${coreutils}/bin:${gawk}/bin:${bash}/bin:${which}/bin:\$PATH\""
-e "2i alias which='type -p'"
chmod 555 "$out/bin/snipe" chmod 555 "$out/bin/snipe"
''; '';