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.
This commit is contained in:
parent
87b82abb82
commit
424e23f9dc
1 changed files with 11 additions and 2 deletions
13
flake.nix
13
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 =
|
flake-parts-modules.tested =
|
||||||
# Consumer toplevel
|
# Consumer toplevel
|
||||||
|
|
@ -146,9 +152,12 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
key = "nix-bindings-rust-add-checks";
|
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 (
|
config.checks = lib.concatMapAttrs (
|
||||||
k: v:
|
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;
|
"dependency-${k}" = v;
|
||||||
}
|
}
|
||||||
) nix-bindings-rust-perSystemConfig.config.checks;
|
) nix-bindings-rust-perSystemConfig.config.checks;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue