2019-10-24 20:36:58 +03:00
|
|
|
{ pkgs ? import ../nix {} }:
|
|
|
|
|
|
|
|
let
|
2019-10-25 01:54:40 +03:00
|
|
|
eval = pkgs.lib.evalModules {
|
|
|
|
modules = import ../src/nix/modules.nix;
|
2019-10-24 20:36:58 +03:00
|
|
|
};
|
|
|
|
options = pkgs.nixosOptionsDoc {
|
|
|
|
options = eval.options;
|
|
|
|
};
|
|
|
|
|
2022-04-08 01:01:25 +03:00
|
|
|
in (pkgs.runCommand "agent-options.adoc" { } ''
|
|
|
|
cat >$out <<EOF
|
2019-10-24 20:36:58 +03:00
|
|
|
= Arion options
|
|
|
|
|
2022-04-08 01:01:25 +03:00
|
|
|
EOF
|
|
|
|
cat ${options.optionsAsciiDoc} >>$out
|
2019-10-27 13:42:40 +03:00
|
|
|
'').overrideAttrs (o: {
|
|
|
|
# Work around https://github.com/hercules-ci/hercules-ci-agent/issues/168
|
|
|
|
allowSubstitutes = true;
|
|
|
|
})
|