optionsAsciiDoc is a file now

This commit is contained in:
Robert Hensing 2022-04-08 00:01:25 +02:00
parent baa515d88e
commit ad9e564308

View file

@ -8,10 +8,12 @@ let
options = eval.options; options = eval.options;
}; };
in (pkgs.writeText "agent-options" '' in (pkgs.runCommand "agent-options.adoc" { } ''
cat >$out <<EOF
= Arion options = Arion options
${options.optionsAsciiDoc} EOF
cat ${options.optionsAsciiDoc} >>$out
'').overrideAttrs (o: { '').overrideAttrs (o: {
# Work around https://github.com/hercules-ci/hercules-ci-agent/issues/168 # Work around https://github.com/hercules-ci/hercules-ci-agent/issues/168
allowSubstitutes = true; allowSubstitutes = true;