language: nix sudo: false env: global: - CACHIX_CACHE= - NUR_REPO= install: - nix --version - travis_retry nix-channel --update - if [ -n "${CACHIX_CACHE}" ]; then nix-env -i cachix; fi - if [ -n "${CACHIX_CACHE}" ]; then cachix use "${CACHIX_CACHE}"; fi script: - outs=$(nix-build non-broken.nix) && echo Produced $outs - nix eval -f default.nix 'lib' - nix eval -f default.nix 'modules' - nix eval -f default.nix 'overlays' after_success: - if [ -n "${CACHIX_CACHE}" ]; then cachix push "${CACHIX_CACHE}" $outs; fi - if [ "false" = "${TRAVIS_PULL_REQUEST}" -a "master" = "${TRAVIS_BRANCH}" ]; then curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi