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";