summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-11-06 22:28:31 -0800
committerAdam Joseph <adam@westernsemico.com>2022-11-06 22:28:31 -0800
commit8260aed123ea511cd10fb5a3385fe07cd12d349a (patch)
tree0339cecba4f7bcc7cfe935d037ac00430f4981ed
parent06ecc51368bb4181c313dd6fea1bc573b9b9a033 (diff)
downloadnixpkgs-8260aed123ea511cd10fb5a3385fe07cd12d349a.tar
nixpkgs-8260aed123ea511cd10fb5a3385fe07cd12d349a.tar.gz
nixpkgs-8260aed123ea511cd10fb5a3385fe07cd12d349a.tar.bz2
nixpkgs-8260aed123ea511cd10fb5a3385fe07cd12d349a.tar.lz
nixpkgs-8260aed123ea511cd10fb5a3385fe07cd12d349a.tar.xz
nixpkgs-8260aed123ea511cd10fb5a3385fe07cd12d349a.tar.zst
nixpkgs-8260aed123ea511cd10fb5a3385fe07cd12d349a.zip
rephrase to avoid mass-rebuild
-rw-r--r--pkgs/development/libraries/boehm-gc/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/boehm-gc/default.nix b/pkgs/development/libraries/boehm-gc/default.nix
index 1a5924fbf55..0e7a936b4c2 100644
--- a/pkgs/development/libraries/boehm-gc/default.nix
+++ b/pkgs/development/libraries/boehm-gc/default.nix
@@ -32,14 +32,14 @@ stdenv.mkDerivation (finalAttrs: {
 
   # this stanza can be dropped when a release fixes this issue:
   # https://github.com/ivmai/bdwgc/issues/376
-  makeFlags = lib.optionals (stdenv.hostPlatform.isPower64 &&
-                             lib.versionAtLeast finalAttrs.version "8.2.2")
-    [
+  makeFlags = if (stdenv.hostPlatform.isPower64 &&
+                  lib.versionAtLeast finalAttrs.version "8.2.2")
+    then [
       # do not use /proc primitives to track dirty bits; see:
       # https://github.com/ivmai/bdwgc/issues/479#issuecomment-1279687537
       # https://github.com/ivmai/bdwgc/blob/54522af853de28f45195044dadfd795c4e5942aa/include/private/gcconfig.h#L741
       "CFLAGS_EXTRA=-DNO_SOFT_VDB"
-    ];
+    ] else null;
 
   # `gctest` fails under emulation on aarch64-darwin
   doCheck = !(stdenv.isDarwin && stdenv.isx86_64);