[staging-next] adms: fix build with c23 (#474585)

This commit is contained in:
Aleksana
2025-12-29 09:57:32 +00:00
committed by GitHub
+10
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
autoreconfHook,
flex,
bison,
@@ -23,6 +24,15 @@ stdenv.mkDerivation rec {
sha256 = "0i37c9k6q1iglmzp9736rrgsnx7sw8xn3djqbbjw29zsyl3pf62c";
};
patches = [
# fix build with c23
# admsXml.c:645:8: error: too many arguments to function 'verilogaparse'; expected 0, have 1
(fetchpatch2 {
url = "https://salsa.debian.org/science-team/adms/-/raw/01ef4a94a48736c49c67d90da506b34f6114f0b0/debian/patches/0002-fix-ftbfs-gcc-15.patch";
hash = "sha256-rSNBqdpuXA9ViyygRGn4KVknLCu0Q+UoOGLfoNAgccc=";
})
];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [
flex