perlPackages.TimeDate: use fetchpatch instead of storing the patch

This commit is contained in:
Bas van Dijk 2020-01-29 11:45:38 +01:00
parent 28f2dcc8b7
commit e5274c97cc
2 changed files with 7 additions and 14 deletions

View file

@ -1,12 +0,0 @@
Index: TimeDate-2.30/t/getdate.t
===================================================================
--- TimeDate-2.30.orig/t/getdate.t
+++ TimeDate-2.30/t/getdate.t
@@ -156,7 +156,7 @@ Jul 22 10:00:00 UTC 2002 ;102733200
!;
require Time::Local;
-my $offset = Time::Local::timegm(0,0,0,1,0,70);
+my $offset = Time::Local::timegm(0,0,0,1,0,1970);
@data = split(/\n/, $data);

View file

@ -19545,8 +19545,13 @@ let
url = mirror://cpan/authors/id/G/GB/GBARR/TimeDate-2.30.tar.gz;
sha256 = "11lf54akr9nbivqkjrhvkmfdgkbhw85sq0q4mak56n6bf542bgbm";
};
# https://rt.cpan.org/Public/Bug/Display.html?id=124509
patches = [ ../development/perl-modules/timedate-2020.patch ];
patches = [
# https://rt.cpan.org/Public/Bug/Display.html?id=124509
(fetchpatch {
url = "https://github.com/atoomic/perl-TimeDate/commit/4b67ccbdc1846620470ca524a5f3e2afd7b33f66.patch";
sha256 = "1q37yw0b2pammvl0aana70nq7krqwhpcanqa11h2pg9sa9ls7q87";
})
];
};
TimeDuration = buildPerlPackage {