From cb26fc0a12d0b1d71739696383cf31b09b456d9c Mon Sep 17 00:00:00 2001 From: Matt McHenry Date: Mon, 9 May 2016 22:27:09 -0400 Subject: [PATCH] perl: XML::Grove: init at 0.46alpha --- .../perl-modules/xml-grove-utf8.patch | 10 ++++++++++ pkgs/top-level/perl-packages.nix | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/perl-modules/xml-grove-utf8.patch diff --git a/pkgs/development/perl-modules/xml-grove-utf8.patch b/pkgs/development/perl-modules/xml-grove-utf8.patch new file mode 100644 index 000000000000..d0b913090be4 --- /dev/null +++ b/pkgs/development/perl-modules/xml-grove-utf8.patch @@ -0,0 +1,10 @@ +--- XML-Grove-0.46alpha/t/grove.t 2008-07-22 14:47:27.000000000 +0200 ++++ XML-Grove-0.46alpha/t/grove.t 2008-07-22 14:46:42.000000000 +0200 +@@ -13,6 +13,7 @@ use XML::Parser::PerlSAX; + use XML::Grove::Builder; + use XML::Grove::AsString; + use XML::Grove::AsCanonXML; ++use utf8; + + $loaded = 1; + print "ok 1\n"; diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index d39cb96ac6c6..eb1189f4224d 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -14067,6 +14067,22 @@ let self = _self // overrides; _self = with self; { doCheck = false; }; + XMLGrove = buildPerlPackage rec { + name = "XML-Grove-0.46alpha"; + src = fetchurl { + url = "mirror://cpan/authors/id/K/KM/KMACLEOD/${name}.tar.gz"; + sha256 = "05yis1ms7cgwjh57k57whrmalb3ha0bjr9hyvh7cnadcyiynvdpw"; + }; + buildInputs = [ pkgs.libxml2 ]; + propagatedBuildInputs = [ libxml_perl ]; + + #patch from https://bugzilla.redhat.com/show_bug.cgi?id=226285 + patches = [ ../development/perl-modules/xml-grove-utf8.patch ]; + meta = { + description = "Perl-style XML objects"; + }; + }; + XMLLibXML = buildPerlPackage rec { name = "XML-LibXML-2.0122"; src = fetchurl {