Use nix-env
continuous-integration/drone/push Build is failing Details

pull/1/head
mat ess 2022-10-19 21:19:52 -04:00
parent 967fe00c63
commit dacc0fffd0
1 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ type: docker
name: default name: default
environment: environment:
NIX: nix --extra-experimental-features nix-command --extra-experimental-features flakes --extra-experimental-features ca-derivations NIX: nix --extra-experimental-features nix-command --extra-experimental-features flakes
CACHE_NAME: mat CACHE_NAME: mat
steps: steps:
@ -16,15 +16,15 @@ steps:
CACHIX_AUTH_TOKEN: CACHIX_AUTH_TOKEN:
from_secret: cachix_auth_token from_secret: cachix_auth_token
commands: commands:
- $NIX profile install nixpkgs#cachix nixpkgs#jq - nix-env --install --attribute nixpkgs.cachix nixpkgs.jq
- cachix use $CACHE_NAME - cachix use $CACHE_NAME
- > - >
$NIX flake archive --json \ $NIX flake archive --json
| jq -r '.path,(.inputs|to_entries[].value.path)' \ | jq -r '.path,(.inputs|to_entries[].value.path)'
| cachix push $CACHE_NAME | cachix push $CACHE_NAME
- > - >
$NIX build \ $NIX build
| jq -r '.[].outputs | to_entries[].value' \ | jq -r '.[].outputs | to_entries[].value'
| cachix push $CACHE_NAME | cachix push $CACHE_NAME
- cp -r result/* /site/ - cp -r result/* /site/