From 15029ff44a138e4d157000fe36de9cf8881f35ce Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Sat, 19 Mar 2016 13:27:54 +0100 Subject: [PATCH] perl-Apache-LogFormat-Compiler: 0.13 -> 0.33 --- pkgs/top-level/perl-packages.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index c48aaba6de5f..258b6a4909b1 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -166,13 +166,16 @@ let self = _self // overrides; _self = with self; { propagatedBuildInputs = [ Mouse ]; }; - ApacheLogFormatCompiler = buildPerlModule { - name = "Apache-LogFormat-Compiler-0.13"; + ApacheLogFormatCompiler = buildPerlModule rec { + name = "Apache-LogFormat-Compiler-0.33"; src = fetchurl { - url = mirror://cpan/authors/id/K/KA/KAZEBURO/Apache-LogFormat-Compiler-0.13.tar.gz; - sha256 = "b4185125501e288efbc664da8b723ff86f0b69eb57d3c7c69c7d2069aab0efb0"; + url = "mirror://cpan/authors/id/K/KA/KAZEBURO/${name}.tar.gz"; + sha256 = "17blk3zhp05azgypn25ydxf3d7fyfgr9bxyiv7xkchhqma96vwqv"; }; - buildInputs = [ HTTPMessage TestRequires TryTiny URI ]; + buildInputs = [ HTTPMessage TestRequires TryTiny URI TestMockTime + POSIXstrftimeCompiler ]; + # We cannot change the timezone on the fly. + prePatch = "rm t/04_tz.t"; meta = { homepage = https://github.com/kazeburo/Apache-LogFormat-Compiler; description = "Compile a log format string to perl-code";