syncterm: move CFLAGS into env for structuredAttrs
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user