git.iko.soy/typeable/nixpkgs
on master help sign in
perl: fix evaluation on cygwin
5dfe6fdVladimír Čunát
pkgs/development/interpreters/perl/default.nix+3−1
@@ -102,7 +102,9 @@ let
102 # TODO: removing those paths would be cleaner than overwriting with nonsense.
102 # TODO: removing those paths would be cleaner than overwriting with nonsense.
103 substituteInPlace "$out"/lib/perl5/*/*/Config_heavy.pl \
103 substituteInPlace "$out"/lib/perl5/*/*/Config_heavy.pl \
104 --replace "${libcInc}" /no-such-path \
104 --replace "${libcInc}" /no-such-path \
105+ --replace "${
105− --replace "${stdenv.cc.cc or "/no-such-path"}" /no-such-path \
106+ if stdenv.cc.cc or null != null then stdenv.cc.cc else "/no-such-path"
107+ }" /no-such-path \
106 --replace "$man" /no-such-path
108 --replace "$man" /no-such-path
107 ''; # */
109 ''; # */
108
110