on master help sign in
Export env vars through shell interpolation so we have access to the $HOME
commit0339429bca580976e5a8d9bd181558224ff7a79b authorguillaume <guillaume@repl.it> dateMon 28 Jun 2021, 14:14 (5 years ago) parentbf582c8
1 file changed+5−4
.circleci/config.yml+5−4
.circleci/config.yml+5−4
@@ -17,14 +17,15 @@ jobs:
1717 nix_build:
1818 docker:
1919 - image: nixos/nix
20− environment:
21− NIX_STORE_DIR: $HOME/nix/store
22− NIX_STATE_DIR: $HOME/nix/var/nix
23− NIX_LOG_DIR: $HOME/nix/var/log/nix
2420 steps:
2521 - checkout
2622 - restore_cache:
2723 key: nix-store
24+ - name: Setup Environment Variables
25+ command: |
26+ echo "export NIX_STORE_DIR=$HOME/nix/store" >> $BASH_ENV
27+ echo "export NIX_STATE_DIR=$HOME/nix/var/nix" >> $BASH_ENV
28+ echo "export NIX_LOG_DIR=$HOME/nix/var/log/nix" >> $BASH_ENV
2829 - run: nix-build
2930 - save_cache:
3031 key: nix-store