diff options
author | Jude Taylor <me@jude.bio> | 2015-06-19 12:55:48 -0700 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2015-06-19 12:56:38 -0700 |
commit | e039794e5bfbbf4720337194c88f34eb4af9c300 (patch) | |
tree | 1cc4c098d1da63bdce40afbfdc9df68d26e4f812 /pkgs/development/interpreters/perl | |
parent | c96d269ad73ad22045507c548b0fef7722ae1a47 (diff) |
apply perl-5.20 fix to pure darwin only
Diffstat (limited to 'pkgs/development/interpreters/perl')
-rw-r--r-- | pkgs/development/interpreters/perl/5.20/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/perl/5.20/default.nix b/pkgs/development/interpreters/perl/5.20/default.nix index 8cb07621ef167..e8eb3a70e3744 100644 --- a/pkgs/development/interpreters/perl/5.20/default.nix +++ b/pkgs/development/interpreters/perl/5.20/default.nix @@ -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'" |