From 424e23f9dc8cd7a7fa8f3b15ce73e42ca9a5ab52 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 28 Dec 2025 18:10:36 +0100 Subject: [PATCH] Exclude clippy checks from flake module for dependents Dependents don't need to run clippy on nix-bindings-rust code; that's handled by this repo's own CI. The flake module provides build/test checks for dependents, not linting. This partially reverts 351a206. --- flake.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 0cd0142..f9896ad 100644 --- a/flake.nix +++ b/flake.nix @@ -108,7 +108,13 @@ }; /** - Adds flake checks that test the bindings with the provided nix package. + A flake-parts module for dependents to import. Also dogfooded locally + (extra, not required for normal CI). + + Adds flake checks that test the nix-bindings crates with the + dependent's nix package. + + See https://github.com/nixops4/nix-bindings-rust?tab=readme-ov-file#integration-with-nix-projects */ flake-parts-modules.tested = # Consumer toplevel @@ -146,9 +152,12 @@ in { key = "nix-bindings-rust-add-checks"; + # Exclude clippy checks; those are part of this repo's local CI. + # This module is for dependents (and local dogfooding), which + # don't need to run clippy on nix-bindings-rust. config.checks = lib.concatMapAttrs ( k: v: - lib.optionalAttrs (lib.strings.hasPrefix "nix-bindings-" k) { + lib.optionalAttrs (lib.strings.hasPrefix "nix-bindings-" k && !lib.strings.hasSuffix "-clippy" k) { "dependency-${k}" = v; } ) nix-bindings-rust-perSystemConfig.config.checks;