From 92ec26ce8d59d6856fb4f5ee4d1b74c654ca6eda Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 19 Nov 2023 01:33:38 +0100 Subject: [PATCH] cvs: fix CFLAGS only on darwin Fixes build for pkgsCross.x86_64-netbsd.netbsd.sys --- pkgs/applications/version-management/cvs/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/version-management/cvs/default.nix b/pkgs/applications/version-management/cvs/default.nix index 4ee553c6c4be..20a38f9f8e8c 100644 --- a/pkgs/applications/version-management/cvs/default.nix +++ b/pkgs/applications/version-management/cvs/default.nix @@ -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"; };