From: Paul Bonaud Date: Mon, 29 Jun 2020 16:29:25 +0000 (+0200) Subject: ci: trying to fix nix-channel by removing unstable channel X-Git-Tag: v2.7~2^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=ff807544492f1503ccac99ad6d472057f3d325a7;p=github%2Ffretlink%2Fansible-clever.git 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. --- diff --git a/.travis.yml b/.travis.yml index 7ce4540..4a7aa46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,12 @@ sudo: false language: nix nix: 2.3.4 env: - - NIX_PATH=nixpkgs=channel:nixos-20.03 + - CUSTOM_NIX_PATH=nixpkgs=channel:nixos-20.03 + +# Travis nix integration will install nix AFTER the environment variables are set +# and the nix installer will overide NIX_PATH variable thus we need to re-export it +before_install: + - export NIX_PATH="$CUSTOM_NIX_PATH" install: - nix-env -i -f ./default.nix