Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
general:
build_dir: cli
machine:
environment:
NIX_PROFILE: /nix/var/nix/profiles/ubuntu
PATH: $NIX_PROFILE/bin:$PATH
NIX_PATH: nixpkgs=/nix/var/nix/profiles/per-user/ubuntu/channels/nixpkgs
dependencies:
cache_directories:
- ~/nix-cache
override:
- sudo install -o ubuntu -d /nix ~/nix-cache
- mv ~/nix-cache/* /nix || true
- which nix-build 2>/dev/null || curl https://nixos.org/nix/install | bash
- nix-build -A env --no-out-link
- cp -r /nix/* ~/nix-cache
test:
override:
- $(nix-build -A testScript) $CIRCLE_TEST_REPORTS
- nix-build --arg withTests false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.