fix Date::Manip perl package on Linux

This commit is contained in:
Aristid Breitkreuz 2015-11-24 21:03:17 +01:00
parent 799f0f1f23
commit f3e2b0f5b6

View file

@ -2723,6 +2723,10 @@ let self = _self // overrides; _self = with self; {
url = "mirror://cpan/authors/id/S/SB/SBECK/${name}.tar.gz";
sha256 = "0afvr2q2hspd807d6wd7kmrr7ypxdlh8bcnqsqbfwcwd74qadg13";
};
# for some reason, parsing /etc/localtime does not work anymore - make sure that the fallback "/bin/date +%Z" will work
patchPhase = ''
sed -i "s#/bin/date#${pkgs.coreutils}/bin/date#" lib/Date/Manip/TZ.pm
'';
propagatedBuildInputs = [ TestInter ];
meta = {
description = "Date manipulation routines";