cygwin: make perl's XMLParser build on cygwin

This commit is contained in:
Rok Garbas 2015-05-27 15:12:15 +02:00
parent 52068e9b6e
commit c9a45f2f62

View file

@ -10673,6 +10673,9 @@ let self = _self // overrides; _self = with self; {
url = mirror://cpan/authors/id/T/TO/TODDR/XML-Parser-2.41.tar.gz;
sha256 = "1sadi505g5qmxr36lgcbrcrqh3a5gcdg32b405gnr8k54b6rg0dl";
};
patchPhase = if stdenv.isCygwin then ''
sed -i"" -e "s@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. \$Config{_exe};@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. (\$^O eq 'cygwin' ? \"\" : \$Config{_exe});@" inc/Devel/CheckLib.pm
'' else null;
makeMakerFlags = "EXPATLIBPATH=${pkgs.expat}/lib EXPATINCPATH=${pkgs.expat}/include";
};