3
0
Fork 0
forked from mirrors/nixpkgs

apply perl-5.20 fix to pure darwin only

This commit is contained in:
Jude Taylor 2015-06-19 12:55:48 -07:00
parent c96d269ad7
commit e039794e5b

View file

@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
# while at the same time erasing the PATH environment variable so it unconditionally
# fails. The code in question is guarded by a check for Mac OS, but the patch below
# doesn't have any runtime effect on other platforms.
postPatch = ''
postPatch = stdenv.lib.optional (stdenv.isDarwin && !stdenv.cc.nativeLibc) ''
pwd="$(type -P pwd)"
substituteInPlace dist/PathTools/Cwd.pm \
--replace "pwd_cmd = 'pwd'" "pwd_cmd = '$pwd'"