cvs: fix CFLAGS only on darwin

Fixes build for pkgsCross.x86_64-netbsd.netbsd.sys
This commit is contained in:
Astro 2023-11-19 01:33:38 +01:00
parent c3094f371b
commit 92ec26ce8d

View file

@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
"AR=${stdenv.cc.targetPrefix}ar"
];
env = lib.optionalAttrs stdenv.cc.isClang {
env = lib.optionalAttrs (stdenv.isDarwin && stdenv.cc.isClang) {
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
};