There was an error while loading. Please reload this page.
1 parent 9a835e1 commit 0b67937Copy full SHA for 0b67937
1 file changed
nix/package.nix
@@ -235,6 +235,14 @@ else
235
apple-sdk_15
236
];
237
238
+ # pipewire's libspa-0.2.pc carries `-fno-strict-overflow` in its Cflags, and
239
+ # libpipewire-0.3 pulls it in via Requires. cgo refuses any pkg-config flag
240
+ # outside its allowlist, and that one is not on it, so the linux adapter
241
+ # fails to build until cgo is told the flag is safe.
242
+ env = lib.optionalAttrs stdenv.hostPlatform.isLinux {
243
+ CGO_CFLAGS_ALLOW = "-fno-strict-overflow";
244
+ };
245
+
246
# Allow Go to use any available toolchain
247
preBuild = ''
248
export GOTOOLCHAIN=auto
0 commit comments