about summary refs log tree commit diff
path: root/tools/nixery
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-08-19T00·34+0100
committerVincent Ambo <github@tazj.in>2019-08-19T00·56+0100
commitdaa6196c2a5575a9394cf6e389aee8e050df08ec (patch)
treedee786d92e905f31106178b06169e3ec3125615a /tools/nixery
parentccf6a95f94b4abad2fed94e613888a4407f3ec93 (diff)
fix(build): Force nix-env to use NIX_PATH
Thanks to clever!
Diffstat (limited to 'tools/nixery')
-rw-r--r--tools/nixery/.travis.yml11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/nixery/.travis.yml b/tools/nixery/.travis.yml
index 864eeaa9021e..471037f36474 100644
--- a/tools/nixery/.travis.yml
+++ b/tools/nixery/.travis.yml
@@ -4,12 +4,11 @@ services:
 env:
   - NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/88d9f776091896cfe57dc6fbdf246e7d27d5f105.tar.gz
 before_script:
-  - |
-    mkdir test-files
-    echo ${GOOGLE_KEY} | base64 -d > test-files/key.json
-    echo ${GCS_SIGNING_PEM} | base64 -d > test-files/gcs.pem
-    nix-env -iA nixpkgs.cachix -A nixpkgs.go
-    cachix use nixery
+  - mkdir test-files
+  - echo ${GOOGLE_KEY} | base64 -d > test-files/key.json
+  - echo ${GCS_SIGNING_PEM} | base64 -d > test-files/gcs.pem
+  - nix-env -f '<nixpkgs>' -iA cachix -A go
+  - cachix use nixery
 script:
   - test -z $(gofmt -l server/ build-image/)
   - nix-build | cachix push nixery