rephrase to avoid mass-rebuild

This commit is contained in:
Adam Joseph
2022-11-06 22:28:31 -08:00
parent 06ecc51368
commit 8260aed123
@@ -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);