From b0e759160dcd29e2dfe0bd6471d39444e7d09123 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sun, 12 Jan 2020 20:52:35 +0100 Subject: [PATCH] travis: set NIX_PATH as early as possible This avoids some unneded downloads when installing cachix. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1828ba3..cbb568a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,10 @@ install: # https://github.com/nixos/nix/issues/2733 - (for i in {1..5}; do bash <(curl https://nixos.org/nix/install) && exit 0; done; exit 1) - . /home/travis/.nix-profile/etc/profile.d/nix.sh - - nix-env -iA cachix -f https://cachix.org/api/v1/install - - cachix use nix-bitcoin - if [[ $STABLE == 1 ]]; then export NIX_PATH="nixpkgs=$(nix eval --raw -f pkgs/nixpkgs-pinned.nix nixpkgs)"; fi - if [[ $STABLE == 0 ]]; then export NIX_PATH="nixpkgs=$(nix eval --raw -f pkgs/nixpkgs-pinned.nix nixpkgs-unstable)"; fi + - nix-env -iA cachix -f https://cachix.org/api/v1/install + - cachix use nix-bitcoin - VER="$(nix eval nixpkgs.lib.version)" env: jobs: