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
|
# 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
|
# 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.
|
# doesn't have any runtime effect on other platforms.
|
||||||
postPatch = ''
|
postPatch = stdenv.lib.optional (stdenv.isDarwin && !stdenv.cc.nativeLibc) ''
|
||||||
pwd="$(type -P pwd)"
|
pwd="$(type -P pwd)"
|
||||||
substituteInPlace dist/PathTools/Cwd.pm \
|
substituteInPlace dist/PathTools/Cwd.pm \
|
||||||
--replace "pwd_cmd = 'pwd'" "pwd_cmd = '$pwd'"
|
--replace "pwd_cmd = 'pwd'" "pwd_cmd = '$pwd'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user