syncterm: move CFLAGS into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-19 19:26:39 +01:00
parent 48bccb78b1
commit 5b53cef5b9
+11 -9
View File
@@ -24,16 +24,18 @@ stdenv.mkDerivation (finalAttrs: {
# We can't use sourceRoot, as the cherry-picked patches apply to files outside of it.
postPatch = "cd src/syncterm";
CFLAGS = [
"-DHAS_INTTYPES_H"
"-DXPDEV_DONT_DEFINE_INTTYPES"
env.CFLAGS = toString (
[
"-DHAS_INTTYPES_H"
"-DXPDEV_DONT_DEFINE_INTTYPES"
"-Wno-unused-result"
"-Wformat-overflow=0"
]
++ (lib.optionals stdenv.hostPlatform.isLinux [
"-DUSE_ALSA_SOUND" # Don't use OSS for beeps.
]);
"-Wno-unused-result"
"-Wformat-overflow=0"
]
++ lib.optionals stdenv.hostPlatform.isLinux [
"-DUSE_ALSA_SOUND" # Don't use OSS for beeps.
]
);
makeFlags = [
"PREFIX=$(out)"