I’m trying to cache a root directory /nix/store to speed up our builds. However, I notice that the directory is not being restored.
Here is the snippet from circle.yml
machine:
services:
- rabbitmq-server
- docker
- redis
dependencies:
cache_directories:
- "~/.cache"
- "/nix"
pre:
- mkdir -p ~/.cache || true
- mkdir -p ~/.nix || true
- |
[[ -d /nix ]] || sudo mkdir -m 0755 /nix
- sudo chown ubuntu /nix
- bash <(curl https://nixos.org/nix/install)
- echo "source ~/.nix-profile/etc/profile.d/nix.sh" >> ~/.circlerc
override:
- scripts/build