about summary refs log tree commit diff
path: root/pkgs/applications/version-management
diff options
context:
space:
mode:
authorStanisław Pitucha <stan.pitucha@envato.com>2023-02-17 22:30:42 +1100
committerStanisław Pitucha <stan.pitucha@envato.com>2023-02-17 22:30:42 +1100
commitbc485d9e26201f28132af6573ae34a00be3d53e9 (patch)
tree91d884e7a9124db485e802f2394ef429e6aeb045 /pkgs/applications/version-management
parenta366e69a1211e5cc6ca423ecdb6b6319396d91a1 (diff)
fnc: fix clang build
Use the gcc-specific option on gcc only.
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r--pkgs/applications/version-management/fnc/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/version-management/fnc/default.nix b/pkgs/applications/version-management/fnc/default.nix
index 7fd1b34d4560e..b74200a6919c0 100644
--- a/pkgs/applications/version-management/fnc/default.nix
+++ b/pkgs/applications/version-management/fnc/default.nix
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
 
   makeFlags = [ "PREFIX=$(out)" ];
 
-  NIX_CFLAGS_COMPILE = [
+  NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
     # Needed with GCC 12
     "-Wno-error=maybe-uninitialized"
   ];