Merge pull request #150631 from pennae/fix-option-docs-nix23
nixos/lib/make-options-doc: fix with nix 2.3
This commit is contained in:
commit
d995f2abb9
1 changed files with 2 additions and 1 deletions
|
@ -118,8 +118,9 @@ in rec {
|
|||
# The actual generation of the xml file is done in nix purely for the convenience
|
||||
# of not having to generate the xml some other way
|
||||
optionsXML = pkgs.runCommand "options.xml" {} ''
|
||||
export NIX_STORE_DIR=$TMPDIR/store
|
||||
export NIX_STATE_DIR=$TMPDIR/state
|
||||
${pkgs.nix}/bin/nix-instantiate \
|
||||
--store dummy:// \
|
||||
--eval --xml --strict ${./optionsJSONtoXML.nix} \
|
||||
--argstr file ${optionsJSON}/share/doc/nixos/options.json \
|
||||
> "$out"
|
||||
|
|
Loading…
Reference in a new issue