build(nix): add cargo clippy check

note that this only checks the top-level package, `bch_bindgen` is
excluded because it has too many clippy lints.
This commit is contained in:
Thomas Mühlbacher 2024-05-28 19:03:36 +02:00
parent bf2c0c8852
commit 422ae1f1a7

View File

@ -131,6 +131,14 @@
} }
); );
checks.cargo-clippy = craneLib.cargoClippy (
commonArgs
// {
inherit cargoArtifacts;
cargoClippyExtraArgs = "--all-targets -- --deny warnings";
}
);
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
inputsFrom = [ inputsFrom = [
config.packages.default config.packages.default