Skip to content

Commit abf9e89

Browse files
committed
feat(rust-crane): add testFlagsExtra
Signed-off-by: Philippe Schaaf <[email protected]>
1 parent 8ce6284 commit abf9e89

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

modules/dream2nix/rust-crane/default.nix

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
testCargoCommand = cfg.testCommand;
6161
cargoTestProfile = cfg.testProfile;
6262
cargoTestFlags = cfg.testFlags;
63+
cargoTestExtraArgs = cfg.testFlagsExtra;
6364
doCheck = cfg.runTests;
6465

6566
# Make sure cargo only checks & builds & tests the package we want

modules/dream2nix/rust-crane/interface.nix

+5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ in {
6565
description = "Flags to add when testing the crate";
6666
default = [];
6767
};
68+
testFlagsExtra = {
69+
type = t.str;
70+
description = "additional flags to be passed in the cargoTestCommand invocation";
71+
default = "--no-run";
72+
};
6873
depsDrv = {
6974
type = t.submoduleWith {
7075
modules = [dream2nix.modules.dream2nix.mkDerivation];

0 commit comments

Comments
 (0)