From 9743771f1a2d4d2675fc9246109636005759cacc Mon Sep 17 00:00:00 2001 From: Brian Olsen Date: Tue, 22 Jul 2025 17:22:36 +0200 Subject: [PATCH] chore: Use mkCargoBuild for nix-compat-derive-tests When using mkCargoBuild we can in a later CL enable the compile tests and get rid of the feature flag in the nix-compat-derive-tests crate. Change-Id: Ieeb991b65beb6bf19a01d62a935b6ffaf3d405d8 Reviewed-on: https://cl.snix.dev/c/snix/+/30650 Autosubmit: Brian Olsen Tested-by: besadii Reviewed-by: Florian Klink --- snix/nix-compat-derive-tests/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/snix/nix-compat-derive-tests/default.nix b/snix/nix-compat-derive-tests/default.nix index 33d185e73..80d671173 100644 --- a/snix/nix-compat-derive-tests/default.nix +++ b/snix/nix-compat-derive-tests/default.nix @@ -1,5 +1,8 @@ { depot, ... }: -depot.snix.crates.workspaceMembers.nix-compat-derive-tests.build.override { - runTests = true; +depot.snix.mkCargoBuild { + name = "nix-compat-derive-tests"; + buildPhase = '' + cargo test -p nix-compat-derive-tests 2>&1 | tee -a $out + ''; }