We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cda266 commit 855741aCopy full SHA for 855741a
1 file changed
package.nix
@@ -349,9 +349,15 @@ in {
349
350
# Needed for tests if we are not doing a build, but testing existing
351
# built Nix.
352
- preInstallCheck = lib.optionalString (! doBuild) ''
353
- mkdir -p src/nix-channel
354
- '';
+ preInstallCheck =
+ lib.optionalString (! doBuild) ''
+ mkdir -p src/nix-channel
355
+ ''
356
+ # See https://github.com/NixOS/nix/issues/2523
357
+ # Occurs often in tests since https://github.com/NixOS/nix/pull/9900
358
+ + lib.optionalString stdenv.hostPlatform.isDarwin ''
359
+ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
360
+ '';
361
362
separateDebugInfo = !stdenv.hostPlatform.isStatic;
363
0 commit comments