Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
nixosLib,
|
|
pkgsModule,
|
|
runCommand,
|
|
}:
|
|
|
|
let
|
|
sys = nixosLib.evalModules rec {
|
|
modules = [
|
|
pkgsModule
|
|
../documentation.nix
|
|
../version.nix
|
|
|
|
(
|
|
{ lib, someArg, ... }:
|
|
{
|
|
# Make sure imports from specialArgs are respected
|
|
imports = [ someArg.myModule ];
|
|
|
|
# TODO test this
|
|
meta.doc = ./test-dummy.chapter.xml;
|
|
}
|
|
)
|
|
|
|
{
|
|
_module.args = {
|
|
baseModules = [
|
|
../documentation.nix
|
|
../version.nix
|
|
];
|
|
extraModules = [ ];
|
|
inherit modules;
|
|
};
|
|
documentation.nixos.includeAllModules = true;
|
|
}
|
|
];
|
|
specialArgs.someArg.myModule =
|
|
{ lib, ... }:
|
|
{
|
|
options.foobar = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "The foobar option was added via specialArgs";
|
|
default = "qux";
|
|
};
|
|
};
|
|
};
|
|
|
|
in
|
|
runCommand "documentation-check"
|
|
{
|
|
inherit (sys.config.system.build.manual) optionsJSON;
|
|
}
|
|
''
|
|
json="$optionsJSON/share/doc/nixos/options.json"
|
|
echo checking $json
|
|
|
|
grep 'The foobar option was added via specialArgs' <"$json" >/dev/null
|
|
touch $out
|
|
''
|