From f3e2b0f5b6365d8cf0f72e254f85345d3a85274a Mon Sep 17 00:00:00 2001 From: Aristid Breitkreuz Date: Tue, 24 Nov 2015 21:03:17 +0100 Subject: [PATCH] fix Date::Manip perl package on Linux --- pkgs/top-level/perl-packages.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index c2e1c181e5ca..11d9e6e8c36b 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -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";