perl: Fix for impure GNU/kFreeBSD builds.

svn path=/nixpkgs/trunk/; revision=19059
This commit is contained in:
Ludovic Courtès 2009-12-21 01:02:47 +00:00
parent 99f646595c
commit cb130281ba

View file

@ -46,7 +46,9 @@ stdenv.mkDerivation {
preBuild =
''
# 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;