Skip to content
Snippets Groups Projects
Commit bb1ab0b6 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Try supplying the nix.conf as an env var, skipping the fs

parent 955f87c0
No related branches found
No related tags found
1 merge request!109Fix use of the iohk binary cache
...@@ -25,7 +25,14 @@ jobs: ...@@ -25,7 +25,14 @@ jobs:
resource_class: "xlarge" resource_class: "xlarge"
environment: environment:
XDG_CONFIG_DIRS: "/root/project" NIX_CONFIG: |
# Add privatestorage's and haskell.nix[1] nix caches for builds. [1]
# https://input-output-hk.github.io/haskell.nix/tutorials/getting-started/#setting-up-the-binary-cache
extra-substituters = http://saxtons.private.storage/ https://hydra.iohk.io/
# We needed to explictly specify the key for cache.nixos.org until we
# are using a version of nix that has
# https://github.com/NixOS/nix/commit/ff4dea63c9403880500f82ce273713ecf793d2d9
extra-trusted-public-keys = saxtons.private.storage:MplOcEH8G/6mRlhlKkbA8GdeFR3dhCFsSszrspE/ZwY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
steps: steps:
# Get *our* source code. # Get *our* source code.
...@@ -59,9 +66,6 @@ jobs: ...@@ -59,9 +66,6 @@ jobs:
- run: - run:
name: "Building with Nix" name: "Building with Nix"
command: | command: |
echo "BASH_ENV: $BASH_ENV"
cat $BASH_ENV
echo
echo "XDG_CONFIG_DIRS: $XDG_CONFIG_DIRS" echo "XDG_CONFIG_DIRS: $XDG_CONFIG_DIRS"
nix-build \ nix-build \
-vvvv \ -vvvv \
......
# nix.conf for usage in CI.
# Add privatestorage's and haskell.nix[1] nix caches for builds.
# [1] https://input-output-hk.github.io/haskell.nix/tutorials/getting-started/#setting-up-the-binary-cache
extra-substituters = http://saxtons.private.storage/ https://hydra.iohk.io/
# We needed to explictly specify the key for cache.nixos.org until we are using a version of nix
# that has https://github.com/NixOS/nix/commit/ff4dea63c9403880500f82ce273713ecf793d2d9
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= saxtons.private.storage:MplOcEH8G/6mRlhlKkbA8GdeFR3dhCFsSszrspE/ZwY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment