Skip to content

Commit

Permalink
cygwin: make perl's XMLParser build on cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed May 28, 2015
1 parent 52068e9 commit c9a45f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/top-level/perl-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};

Expand Down

0 comments on commit c9a45f2

Please sign in to comment.