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 <brian@maven-group.org>
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
This commit is contained in:
Brian Olsen 2025-07-22 17:22:36 +02:00 committed by clbot
parent 4a70e43022
commit 9743771f1a

View file

@ -1,5 +1,8 @@
{ depot, ... }: { depot, ... }:
depot.snix.crates.workspaceMembers.nix-compat-derive-tests.build.override { depot.snix.mkCargoBuild {
runTests = true; name = "nix-compat-derive-tests";
buildPhase = ''
cargo test -p nix-compat-derive-tests 2>&1 | tee -a $out
'';
} }