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
commit5dfe6fd0344143a2e9b38c393c8ce03c3a36af25
authorVladimír Čunát <vcunat@gmail.com>
dateFri 20 May 2016, 21:37 (11 years ago)
parent36b4e61
pkgs/development/interpreters/perl/default.nix+3−1
@@ -102,7 +102,9 @@ let
102102 # TODO: removing those paths would be cleaner than overwriting with nonsense.
103103 substituteInPlace "$out"/lib/perl5/*/*/Config_heavy.pl \
104104 --replace "${libcInc}" /no-such-path \
105− --replace "${stdenv.cc.cc or "/no-such-path"}" /no-such-path \
105+ --replace "${
106+ if stdenv.cc.cc or null != null then stdenv.cc.cc else "/no-such-path"
107+ }" /no-such-path \
106108 --replace "$man" /no-such-path
107109 ''; # */
108110