diff --git a/flake.nix b/flake.nix index d043b5b..1e63f09 100644 --- a/flake.nix +++ b/flake.nix @@ -159,8 +159,11 @@ in { packages.default = sausage; checks.package = sausage; - checks.tests = craneLib.cargoTest (common // wasiCcEnv // { + checks.tests = craneLib.mkCargoDerivation (common // wasiCcEnv // { inherit cargoArtifacts; + pnameSuffix = "-test"; + doCheck = true; + buildPhaseCargoCommand = ""; # Keep the same sandbox-compatible modules in the shared host test executable. checkPhaseCargoCommand = '' cargoWithProfile test --locked --workspace --lib