forked from mirrors/nixpkgs
apply perl-5.20 fix to pure darwin only
This commit is contained in:
parent
c96d269ad7
commit
e039794e5b
|
@ -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'"
|
||||
|
|
Loading…
Reference in a new issue