Merge pull request #283182 from jfroche/fix/nix-darwin-initialize-fork-safety

nix: fix installCheckPhase crashes on Darwin
This commit is contained in:
Bernardo Meurer 2024-01-23 12:07:31 -05:00 committed by GitHub
commit f435abd55e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -216,7 +216,7 @@ self = stdenv.mkDerivation {
# Prevent crashes in libcurl due to invoking Objective-C `+initialize` methods after `fork`.
# See http://sealiesoftware.com/blog/archive/2017/6/5/Objective-C_and_fork_in_macOS_1013.html.
+ lib.optionalString stdenv.isDarwin ''
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
''
# See https://github.com/NixOS/nix/issues/5687
+ lib.optionalString (atLeast25 && stdenv.isDarwin) ''