perl: Fix for impure GNU/kFreeBSD builds.
svn path=/nixpkgs/trunk/; revision=19059
This commit is contained in:
parent
99f646595c
commit
cb130281ba
|
@ -46,7 +46,9 @@ stdenv.mkDerivation {
|
||||||
preBuild =
|
preBuild =
|
||||||
''
|
''
|
||||||
# Make Cwd work on NixOS (where we don't have a /bin/pwd).
|
# Make Cwd work on NixOS (where we don't have a /bin/pwd).
|
||||||
${if stdenv.isDarwin then "" else "substituteInPlace lib/Cwd.pm --replace \"'/bin/pwd'\" \"'$(type -tP pwd)'\""}
|
${if (stdenv.isDarwin || stdenv.system == "i686-gnu/kfreebsd")
|
||||||
|
then ""
|
||||||
|
else "substituteInPlace lib/Cwd.pm --replace \"'/bin/pwd'\" \"'$(type -tP pwd)'\""}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
Loading…
Reference in New Issue