From 4a8f46f7ce3ba5ba23b12823658afe74d6a5223e Mon Sep 17 00:00:00 2001 From: Doro Rose Date: Sun, 10 Apr 2022 20:51:12 +0200 Subject: [PATCH] boost: make boost work for static darwin builds Prior needsUserConfig setting is unconditionally applied for darwin. This is not valid for static builds and should only be set for dynamically linked darwin builds. --- pkgs/development/libraries/boost/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index c0fce3ae5760..17698216b8d9 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -68,7 +68,7 @@ let else "$NIX_BUILD_CORES"; - needUserConfig = stdenv.hostPlatform != stdenv.buildPlatform || useMpi || stdenv.isDarwin; + needUserConfig = stdenv.hostPlatform != stdenv.buildPlatform || useMpi || (stdenv.isDarwin && enableShared); b2Args = concatStringsSep " " ([ "--includedir=$dev/include"