restart nix-daemon on macos

pre-fetch-elmls-stuff
Brian Hicks 2019-05-14 14:17:32 -05:00
parent 65c12e1968
commit a1c451d41a
1 changed files with 5 additions and 7 deletions

View File

@ -19,14 +19,12 @@ install:
- nix --version
- if [ -n "${CACHIX_CACHE}" ]; then travis_retry nix-channel --update; fi
- if [ -n "${CACHIX_CACHE}" ]; then nix-env -iA cachix -f https://cachix.org/api/v1/install; fi
- |
if [ -n "${CACHIX_CACHE}" ]; then
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
sudo cachix use "${CACHIX_CACHE}"
else
cachix use "${CACHIX_CACHE}"
fi
- if [ -n "${CACHIX_CACHE}" -a "osx" = "${TRAVIS_OS_NAME}" ]; then
echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf;
sudo launchctl stop org.nixos.nix-daemon;
sudo launchctl start org.nixos.nix-daemon;
fi
- if [ -n "${CACHIX_CACHE}" ]; then cachix use "${CACHIX_CACHE}"; fi
- nix-channel --add "${NIX_CHANNEL}" nixpkgs
- travis_retry nix-channel --update