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
This commit is contained in:
Vladimír Čunát 2016-05-20 21:37:27 +02:00
parent 36b4e612e4
commit 5dfe6fd034

View File

@ -102,7 +102,9 @@ let
# TODO: removing those paths would be cleaner than overwriting with nonsense. # TODO: removing those paths would be cleaner than overwriting with nonsense.
substituteInPlace "$out"/lib/perl5/*/*/Config_heavy.pl \ substituteInPlace "$out"/lib/perl5/*/*/Config_heavy.pl \
--replace "${libcInc}" /no-such-path \ --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 --replace "$man" /no-such-path
''; # */ ''; # */