diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 8f811f1f0c57..52a0619a0c00 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -8914,8 +8914,21 @@ with self; url = "mirror://cpan/authors/id/S/SB/SBECK/Date-Manip-6.98.tar.gz"; hash = "sha256-rP2KYFGbpM0YHIpnqD1/ApxtmrTosCEtxH5B1iEP2kk="; }; + # Remove when updating to the first release containing both CVE fixes. + patches = [ + (fetchpatch { + name = "CVE-2026-60074.patch"; + url = "https://security.metacpan.org/patches/D/Date-Manip/6.99/CVE-2026-60074-r1.patch"; + hash = "sha256-leXFfzLyy0yBpBXgT3u3ZyFaIbsbJSFzVkdam9hb3+0="; + }) + (fetchpatch { + name = "CVE-2026-60075.patch"; + url = "https://security.metacpan.org/patches/D/Date-Manip/6.99/CVE-2026-60075-r1.patch"; + hash = "sha256-vMsOrUhrfn8efKRzfJ+jaypOHER8MlUIob5u88n/TAw="; + }) + ]; # for some reason, parsing /etc/localtime does not work anymore - make sure that the fallback "/bin/date +%Z" will work - patchPhase = '' + postPatch = '' sed -i "s#/bin/date#${pkgs.coreutils}/bin/date#" lib/Date/Manip/TZ.pm ''; doCheck = !stdenv.hostPlatform.isi686; # build freezes during tests on i686