Skip to content

Commit

Permalink
ci: verify that meta.maintainers evaluate
Browse files Browse the repository at this point in the history
Fixes #2588
  • Loading branch information
rycee committed Dec 29, 2021
1 parent eeafec5 commit a3457d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./.; };
Expand Down
10 changes: 10 additions & 0 deletions docs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit a3457d3

Please sign in to comment.