Skip to content

Instantly share code, notes, and snippets.

@ryanartecona
Created November 14, 2016 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanartecona/555cccfeaa1f28cae86b9022365afd89 to your computer and use it in GitHub Desktop.
Save ryanartecona/555cccfeaa1f28cae86b9022365afd89 to your computer and use it in GitHub Desktop.
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