about summary refs log tree commit diff
path: root/pkgs/development/interpreters/perl/default.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-05-20 21:37:27 +0200
committerVladimír Čunát <vcunat@gmail.com>2016-05-20 21:37:27 +0200
commit5dfe6fd0344143a2e9b38c393c8ce03c3a36af25 (patch)
tree4982790f85cb3f47c7fb6a6a5e7acd101b3dd331 /pkgs/development/interpreters/perl/default.nix
parent36b4e612e4a341bf57cfe65694aae6b05156a772 (diff)
downloadnixlib-5dfe6fd0344143a2e9b38c393c8ce03c3a36af25.tar
nixlib-5dfe6fd0344143a2e9b38c393c8ce03c3a36af25.tar.gz
nixlib-5dfe6fd0344143a2e9b38c393c8ce03c3a36af25.tar.bz2
nixlib-5dfe6fd0344143a2e9b38c393c8ce03c3a36af25.tar.lz
nixlib-5dfe6fd0344143a2e9b38c393c8ce03c3a36af25.tar.xz
nixlib-5dfe6fd0344143a2e9b38c393c8ce03c3a36af25.tar.zst
nixlib-5dfe6fd0344143a2e9b38c393c8ce03c3a36af25.zip
perl: fix evaluation on cygwin
... and maybe on other platforms that have `stdenv.cc.cc == null`.
No hash changes where it did evaluate previously. Discussion:
https://github.com/NixOS/nixpkgs/commit/b291f1682f#commitcomment-17558440
Diffstat (limited to 'pkgs/development/interpreters/perl/default.nix')
-rw-r--r--pkgs/development/interpreters/perl/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/perl/default.nix b/pkgs/development/interpreters/perl/default.nix
index d3ee18e2ac87..11a7acd617c7 100644
--- a/pkgs/development/interpreters/perl/default.nix
+++ b/pkgs/development/interpreters/perl/default.nix
@@ -102,7 +102,9 @@ let
       # TODO: removing those paths would be cleaner than overwriting with nonsense.
       substituteInPlace "$out"/lib/perl5/*/*/Config_heavy.pl \
         --replace "${libcInc}" /no-such-path \
-        --replace "${stdenv.cc.cc or "/no-such-path"}" /no-such-path \
+        --replace "${
+            if stdenv.cc.cc or null != null then stdenv.cc.cc else "/no-such-path"
+          }" /no-such-path \
         --replace "$man" /no-such-path
     ''; # */