mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 14:35:30 +03:00
feat: introduce cargoTestFlags and cargoBuildFlags for the crane builder
This commit is contained in:
parent
6f840b11f1
commit
81a155921a
@ -27,4 +27,7 @@ in rec {
|
||||
# the tests seem to be undeterministic if ran in parallel
|
||||
disable-parallel-tests.RUST_TEST_THREADS = 1;
|
||||
};
|
||||
linemd = {
|
||||
fix-tests.cargoTestFlags = "--features svg";
|
||||
};
|
||||
}
|
||||
|
@ -69,8 +69,8 @@
|
||||
'';
|
||||
|
||||
# Make sure cargo only builds & tests the package we want
|
||||
cargoBuildCommand = "cargo build --release --package ${pname}";
|
||||
cargoTestCommand = "cargo test --release --package ${pname}";
|
||||
cargoBuildCommand = "cargo build \${cargoBuildFlags:-} --release --package ${pname}";
|
||||
cargoTestCommand = "cargo test \${cargoTestFlags:-} --release --package ${pname}";
|
||||
};
|
||||
|
||||
# The deps-only derivation will use this as a prefix to the `pname`
|
||||
|
Loading…
Reference in New Issue
Block a user