From 75ef0d24f544049e3ef24e4812030b91c77e3218 Mon Sep 17 00:00:00 2001 From: Smaug123 Date: Sun, 23 Jul 2023 21:13:46 +0100 Subject: [PATCH] Try installing --- .woodpecker/.build.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 9939068..f3f4613 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -2,17 +2,19 @@ pipeline: build: image: nixos/nix commands: + - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf + - nix run --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local nixpkgs#bashInteractive # Lint - - nix --experimental-features 'nix-command flakes' develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local --command cargo -- fmt --all -- --check - - nix --experimental-features 'nix-command flakes' develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate - - nix --experimental-features 'nix-command flakes' develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local .#ci --command alejandra -- --check . - - nix --experimental-features 'nix-command flakes' develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local .#ci --command markdown-link-check README.md + - nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local --command cargo -- fmt --all -- --check + - nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate + - nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local .#ci --command alejandra -- --check . + - nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local .#ci --command markdown-link-check README.md # Test - - nix --experimental-features 'nix-command flakes' develop --command cargo test --verbose --release - - nix --experimental-features 'nix-command flakes' develop --command cargo test --verbose + - nix develop --command cargo test --verbose --release + - nix develop --command cargo test --verbose # Run through Nix - - nix --experimental-features 'nix-command flakes' build - - nix --experimental-features 'nix-command flakes' run + - nix build + - nix run volumes: - "/nix:/mnt/nix:ro"