build(flake): make trycmd part of checks

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-09-13 20:21:33 +02:00
parent 1e7ecea87b
commit b8b0380e1d
No known key found for this signature in database
GPG key ID: 26C542FD97F965CE

View file

@ -120,7 +120,7 @@
singleStep = true;
# set itests files creation date to unix epoch
buildPhase = ''touch --date=@0 tests/itest/*'';
cargoTestOptions = opts: opts ++ [ "--features nix" ];
cargoTestOptions = opts: opts ++ ["--features nix"];
inherit buildInputs;
};
@ -135,8 +135,8 @@
singleStep = true;
# set itests files creation date to unix epoch
buildPhase = ''touch --date=@0 tests/itest/*; rm tests/cmd/*.stdout || echo; rm tests/cmd/*.stderr || echo;'';
cargoTestOptions = opts: opts ++ [ "--features nix" ];
TRYCMD="dump";
cargoTestOptions = opts: opts ++ ["--features nix"];
TRYCMD = "dump";
postInstall = ''
cp dump $out -r
'';
@ -155,6 +155,7 @@
build = packages.check;
test = packages.test;
lint = packages.clippy;
trycmd = packages.trycmd;
};
}
);