diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-06-29 18:29:25 +0200 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-06-30 10:35:22 +0200 |
commit | ff807544492f1503ccac99ad6d472057f3d325a7 (patch) | |
tree | d227e10426e446cdd1a6dfaeb73eb13c56308f5f | |
parent | c47b6b55335a01be4a8dbbfb42a276e5222b3908 (diff) | |
download | ansible-clever-ff807544492f1503ccac99ad6d472057f3d325a7.tar.gz ansible-clever-ff807544492f1503ccac99ad6d472057f3d325a7.tar.zst ansible-clever-ff807544492f1503ccac99ad6d472057f3d325a7.zip |
ci: trying to fix nix-channel by removing unstable channel
NIX_PATH used to be enough to select the channel to use, but as Travis
add the nixpkgs-unstable channel we can get unexpected results when
nix decides to push a new unstable version out there in the public.
-rw-r--r-- | .travis.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 7ce4540..4a7aa46 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -3,7 +3,12 @@ sudo: false | |||
3 | language: nix | 3 | language: nix |
4 | nix: 2.3.4 | 4 | nix: 2.3.4 |
5 | env: | 5 | env: |
6 | - NIX_PATH=nixpkgs=channel:nixos-20.03 | 6 | - CUSTOM_NIX_PATH=nixpkgs=channel:nixos-20.03 |
7 | |||
8 | # Travis nix integration will install nix AFTER the environment variables are set | ||
9 | # and the nix installer will overide NIX_PATH variable thus we need to re-export it | ||
10 | before_install: | ||
11 | - export NIX_PATH="$CUSTOM_NIX_PATH" | ||
7 | 12 | ||
8 | install: | 13 | install: |
9 | - nix-env -i -f ./default.nix | 14 | - nix-env -i -f ./default.nix |