ci: verify that `meta.maintainers` evaluate

Fixes #2588
This commit is contained in:
Robert Helgesson 2021-12-29 10:15:39 +01:00
parent eeafec5103
commit a3457d3f85
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
3 changed files with 12 additions and 0 deletions

View File

@ -24,6 +24,7 @@ jobs:
echo "Error: literalExample should be replaced by literalExpression" > /dev/stderr
exit 1
fi
- run: nix-build -A docs.jsonModuleMaintainers
- run: ./format -c
- run: nix-shell . -A install
- run: nix-shell --arg enableBig false --pure tests -A run.all

View File

@ -5,6 +5,7 @@ rec {
html = manual.html;
manPages = manPages;
json = options.json;
jsonModuleMaintainers = jsonModuleMaintainers; # Unstable, mainly for CI.
};
home-manager = pkgs.callPackage ./home-manager { path = toString ./.; };

View File

@ -117,4 +117,14 @@ in {
manPages = docs.manPages;
manual = { inherit (docs) html htmlOpenTool; };
# Unstable, mainly for CI.
jsonModuleMaintainers = pkgs.writeText "hm-module-maintainers.json" (let
result = lib.evalModules {
modules = import ../modules/modules.nix {
inherit lib pkgs;
check = false;
} ++ [ scrubbedPkgsModule ];
};
in builtins.toJSON result.config.meta.maintainers);
}