aboutsummaryrefslogtreecommitdiff
path: root/src/nix/flake.cc
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-01-16 20:16:45 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-01-16 20:16:45 +0100
commit4e7592b59348315b3467159cb6b78b99e9a6fe84 (patch)
treebbdebd602f72a101e001934429aa3a66abba33d6 /src/nix/flake.cc
parent2e41ae9f93af0be2c778dda97e0ee9544a8aca1f (diff)
flake check: Recognize well known community attributes
This avoids warning fatigue, making `nix flake check` more effective.
Diffstat (limited to 'src/nix/flake.cc')
-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);