x16-emulator: fix build w/ glibc-2.44

This commit is contained in:
Maximilian Bosch
2026-09-04 13:31:24 +02:00
parent 137f6183e1
commit 758a42843e

View File

@@ -7,6 +7,7 @@
callPackage,
zlib,
nix-update-script,
fetchpatch,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -30,6 +31,9 @@ stdenv.mkDerivation (finalAttrs: {
})
];
# fix build w/ glibc-2.44
env.NIX_CFLAGS_COMPILE = "-Wno-error=discarded-qualifiers";
postPatch = ''
substituteInPlace Makefile \
--replace-fail '/bin/echo' 'echo'