2 # nix-build nixpkgs/lib/tests/teams.nix
3 # If it builds, all tests passed
4 { pkgs ? import ../.. {}, lib ? pkgs.lib }:
9 teamModule = { config, ... }: {
11 shortName = lib.mkOption {
14 scope = lib.mkOption {
17 enableFeatureFreezePing = lib.mkOption {
21 members = lib.mkOption {
22 type = types.listOf (types.submodule
23 (import ./maintainer-module.nix { inherit lib; })
27 githubTeams = lib.mkOption {
28 type = types.listOf types.str;
34 checkTeam = team: uncheckedAttrs:
36 prefix = [ "lib" "maintainer-team" team ];
37 checkedAttrs = (lib.modules.evalModules {
42 _file = toString ../../maintainers/team-list.nix;
43 config = uncheckedAttrs;
49 checkedTeams = lib.mapAttrs checkTeam lib.teams;
50 in pkgs.writeTextDir "maintainer-teams.json" (builtins.toJSON checkedTeams)