From e14c4a150b0cdf105072e55aec9300246f13d5b9 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Thu, 1 Jan 2026 15:56:17 +0800 Subject: [PATCH] enscript: fix build with gcc15 --- pkgs/by-name/en/enscript/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/en/enscript/package.nix b/pkgs/by-name/en/enscript/package.nix index fb2efa08fd5d..0c6296adc0c9 100644 --- a/pkgs/by-name/en/enscript/package.nix +++ b/pkgs/by-name/en/enscript/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + fetchpatch2, gettext, }: @@ -19,6 +20,12 @@ stdenv.mkDerivation rec { # requires that compat/getopt.h is also removed # https://savannah.gnu.org/bugs/?64307 ./0001-use-system-getopt.patch + # Fix build with gcc15 + # regex.c:3565:13: error: too many arguments to function 're_match_2_internal'; expected 0, have 8 + (fetchpatch2 { + url = "https://salsa.debian.org/debian/enscript/-/raw/7a51479540a210dee5eee4ece5b54e3ce15dec52/debian/patches/1096582-gcc-15"; + hash = "sha256-0H8FNCKgQ1YCwcBaMChQSuFaYlmzSsoqtfsNSr567+Y="; + }) ]; postPatch = ''