Skip to content

Commit a54bd09

Browse files
committed
WIP
M .travis.yml
1 parent d818f92 commit a54bd09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ before_script:
125125
- sudo nix upgrade-nix || true # for macOS
126126
#
127127
# 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
129133
- sudo launchctl unload org.nixos.nix-daemon || true
130134
- sudo launchctl unload system/org.nixos.nix-daemon || true # Force the real disabling, since Nix on macOS has problems restarting the service
131135
- sudo launchctl unload org.nixos.nix-daemon || true

0 commit comments

Comments
 (0)