mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
enscript: fix build with gcc15 (#475819)
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user