mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 01:54:34 +00:00
cygwin: make perl's XMLParser build on cygwin
This commit is contained in:
parent
52068e9b6e
commit
c9a45f2f62
@ -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";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user