aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-01-17 13:27:30 +0100
committerGitHub <noreply@github.com>2023-01-17 13:27:30 +0100
commit9a32f77a95cf15731b753903d7d0d03b541b23b8 (patch)
treeb61c1d59c58170aaa4be4745ebb7279f37312e3e
parent1df3d62c769dc68c279e89f68fdd3723ed3bcb5a (diff)
parent4e7592b59348315b3467159cb6b78b99e9a6fe84 (diff)
Merge pull request #7606 from hercules-ci/recognize-some-flake-attributes
flake check: Recognize well known community attributes
-rw-r--r--src/nix/flake.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index d16d88ef8..020c1b182 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -655,6 +655,19 @@ struct CmdFlakeCheck : FlakeCommand
}
}
+ else if (
+ name == "lib"
+ || name == "darwinConfigurations"
+ || name == "darwinModules"
+ || name == "flakeModule"
+ || name == "flakeModules"
+ || name == "herculesCI"
+ || name == "homeConfigurations"
+ || name == "nixopsConfigurations"
+ )
+ // Known but unchecked community attribute
+ ;
+
else
warn("unknown flake output '%s'", name);