git.iko.soy/typeable/nixpkgs
on master help sign in
perlPackages: fix meta and fix build with perl-5.26 (#42909)
commit4dc44955e8922d0ebcc667ea669375d816a839e1 authorvolth <volth@webmaster.ms> dateFri 6 Jul 2018, 17:16 (8 years ago) parentb29440f
1 file changed+9−1
pkgs/top-level/perl-packages.nix+9−1
pkgs/top-level/perl-packages.nix+9−1
@@ -1861,6 +1861,10 @@ let self = _self // overrides; _self = with self; {
18611861 url = "mirror://cpan/authors/id/J/JS/JSWARTZ/${name}.tar.gz";
18621862 sha256 = "c7f1a2b3570a8fede484e933f89ba1729e0abd05935791d146c522dd120ee851";
18631863 };
1864+ preConfigure = stdenv.lib.optionalString (stdenv.lib.versionAtLeast perl.version "5.26") ''
1865+ # fix error 'Unescaped left brace in regex is illegal here in regex'
1866+ substituteInPlace lib/CHI/t/Driver/Subcache/l1_cache.pm --replace 'qr/CHI stats: {' 'qr/CHI stats: \{'
1867+ '';
18641868 buildInputs = [ TestClass TestDeep TestException TestWarn TimeDate ];
18651869 propagatedBuildInputs = [ CarpAssert ClassLoad DataUUID DigestJHash HashMoreUtils JSONMaybeXS ListMoreUtils LogAny Moo MooXTypesMooseLikeNumeric StringRewritePrefix TaskWeaken TimeDuration TimeDurationParse ];
18661870 meta = {
@@ -2097,6 +2101,10 @@ let self = _self // overrides; _self = with self; {
20972101 url = "mirror://cpan/authors/id/E/EV/EVO/${name}.tar.gz";
20982102 sha256 = "0ricb0mn0i06ngfhq5y035yx8i7ahlx83yyqwixqmv6hg4p79b5c";
20992103 };
2104+ preConfigure = stdenv.lib.optionalString (stdenv.lib.versionAtLeast perl.version "5.26") ''
2105+ # fix error 'Unescaped left brace in regex is illegal here in regex'
2106+ substituteInPlace tests/xemulator/class_methodmaker/Test.pm --replace 's/(TEST\s{)/$1/g' 's/(TEST\s\{)/$1/g'
2107+ '';
21002108 };
21012109
21022110 ClassMethodMaker = buildPerlPackage rec {
@@ -14018,7 +14026,7 @@ let self = _self // overrides; _self = with self; {
1401814026 license = licenses.gpl3;
1401914027 platforms = platforms.all;
1402014028 maintainers = with maintainers; [ pSub ];
14021− meta.broken = true;
14029+ broken = true;
1402214030 };
1402314031 };
1402414032