diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-01-16 20:16:45 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-01-16 20:16:45 +0100 |
commit | 4e7592b59348315b3467159cb6b78b99e9a6fe84 (patch) | |
tree | bbdebd602f72a101e001934429aa3a66abba33d6 /src | |
parent | 2e41ae9f93af0be2c778dda97e0ee9544a8aca1f (diff) |
flake check: Recognize well known community attributes
This avoids warning fatigue, making `nix flake check` more effective.
Diffstat (limited to 'src')
-rw-r--r-- | src/nix/flake.cc | 13 |
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); |