diff --git a/modules/dream2nix/rust-crane/default.nix b/modules/dream2nix/rust-crane/default.nix index 9ca3f2107..408be2138 100644 --- a/modules/dream2nix/rust-crane/default.nix +++ b/modules/dream2nix/rust-crane/default.nix @@ -60,6 +60,7 @@ testCargoCommand = cfg.testCommand; cargoTestProfile = cfg.testProfile; cargoTestFlags = cfg.testFlags; + cargoTestExtraArgs = cfg.testFlagsExtra; doCheck = cfg.runTests; # Make sure cargo only checks & builds & tests the package we want diff --git a/modules/dream2nix/rust-crane/interface.nix b/modules/dream2nix/rust-crane/interface.nix index 4f06b2968..5d78cf04c 100644 --- a/modules/dream2nix/rust-crane/interface.nix +++ b/modules/dream2nix/rust-crane/interface.nix @@ -65,6 +65,11 @@ in { description = "Flags to add when testing the crate"; default = []; }; + testFlagsExtra = { + type = t.str; + description = "additional flags to be passed in the cargoTestCommand invocation"; + default = "--no-run"; + }; depsDrv = { type = t.submoduleWith { modules = [dream2nix.modules.dream2nix.mkDerivation];