From 89fad1ce7b529a82121c04d8d0b56487a94e703c Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Thu, 1 Jan 2026 16:07:24 +0100 Subject: [PATCH] perlPackages.Term-ReadLine-Gnu: fix compilation with Gcc15 The project uses a list of function pointers that make Gcc15 unhappy because it thinks it is performing an incompatible pointer conversion. Thankfully upstream has already adopted a patch for this last year but that doesn't seem to be part of a released version (yet). --- pkgs/top-level/perl-packages.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index ed0ebb923fcf..be63388e452e 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -32950,6 +32950,12 @@ with self; url = "mirror://cpan/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-1.46.tar.gz"; hash = "sha256-sTgyEy5QNmw0/qwSzoKDfAqds0ylMK5dJ9uXz5yWTHs="; }; + patches = [ + (fetchpatch { + url = "https://github.com/hirooih/perl-trg/commit/90ebd3f65652484994c838f5dc62944aee67a2a0.patch"; + sha256 = "sha256-FRlzpGfuUT43MABk8AYeLkCy1uiIEu7JjJy9HziR8BA="; + }) + ]; buildInputs = [ pkgs.readline pkgs.ncurses