summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mühlbacher <tmuehlbacher@posteo.net>2024-05-28 19:03:36 +0200
committerThomas Mühlbacher <tmuehlbacher@posteo.net>2024-05-28 19:32:53 +0200
commit422ae1f1a70c5c97bd26756d0f61ad011ccea87f (patch)
treef21df905cb8a343147ad3ce37bd59ec3c9a63ed4
parentbf2c0c88528e6e6a2ffd47fe6804ec97c4708804 (diff)
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.
-rw-r--r--flake.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 291d10f9..c6f5e6aa 100644
--- a/flake.nix
+++ b/flake.nix
@@ -131,6 +131,14 @@
}
);
+ checks.cargo-clippy = craneLib.cargoClippy (
+ commonArgs
+ // {
+ inherit cargoArtifacts;
+ cargoClippyExtraArgs = "--all-targets -- --deny warnings";
+ }
+ );
+
devShells.default = pkgs.mkShell {
inputsFrom = [
config.packages.default