--- image: nixpkgs/nix-flakes:latest variables: NIX_PATH: "nixpkgs=channel:nixpkgs-unstable" before_script: - nix --version - nix flake metadata stages: - info - check - cachix info: stage: info script: - env - nix show-config - nix show-derivation check: stage: check script: - nix flake check --show-trace allow_failure: true cachix: stage: cachix script: - set -o pipefail - nix build --print-build-logs --show-trace --json | nix shell nixpkgs#jq --command jq -r '.[].outputs | to_entries[].value' | nix shell nixpkgs#cachix --command cachix push $CACHIX_CACHE_NAME artifacts: paths: - result expire_in: 1 week when: on_success