diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2019-02-09 20:32:12 +0100 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2019-02-09 20:35:30 +0100 |
commit | 8ac1130cc2f0d717fa49adf18465ecf5613d295c (patch) | |
tree | 32423c7d6d2dc43e421f4d9300dd7191595fadc5 /misc | |
parent | 01d07b1e92c298f729a73705907b2987da9a4d0c (diff) |
nix-daemon: add variable to disable fork safety
Since macOS 10.14 this has become an error, causing problems if the
nix-daemon loads nix during substitution (this is a forked process).
Workaround for #2523.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/launchd/org.nixos.nix-daemon.plist.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/launchd/org.nixos.nix-daemon.plist.in b/misc/launchd/org.nixos.nix-daemon.plist.in index 549619a57..92ed12fa5 100644 --- a/misc/launchd/org.nixos.nix-daemon.plist.in +++ b/misc/launchd/org.nixos.nix-daemon.plist.in @@ -2,6 +2,11 @@ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> + <key>EnvironmentVariables</key> + <dict> + <key>OBJC_DISABLE_INITIALIZE_FORK_SAFETY</key> + <string>YES</string> + </dict> <key>Label</key> <string>org.nixos.nix-daemon</string> <key>KeepAlive</key> |