File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,11 @@ before_script:
125
125
- sudo nix upgrade-nix || true # for macOS
126
126
#
127
127
# NOTE: macOS service restart
128
- - sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist || true
128
+ # NOTE: Because Nix could not update on itself:
129
+ # 1. https://github.com/NixOS/nix/issues/3125#issuecomment-539667327
130
+ # 2. https://github.com/NixOS/nix/issues/3125#issuecomment-539771768
131
+ - sudo rm -f /Library/LaunchDaemons/org.nixos.nix-daemon.plist || true
132
+ - sudo cp -f $(readlink /Library/LaunchDaemons/org.nixos.nix-daemon.plist) /Library/LaunchDaemons/org.nixos.nix-daemon.plist || true - sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist || true
129
133
- sudo launchctl unload org.nixos.nix-daemon || true
130
134
- sudo launchctl unload system/org.nixos.nix-daemon || true # Force the real disabling, since Nix on macOS has problems restarting the service
131
135
- sudo launchctl unload org.nixos.nix-daemon || true
You can’t perform that action at this time.
0 commit comments