From ff807544492f1503ccac99ad6d472057f3d325a7 Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Mon, 29 Jun 2020 18:29:25 +0200 Subject: [PATCH] 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. --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.41.0