git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/lib/make-options-doc: fix with nix 2.3
commita70b1eb630989571388019a9c7b2714eafaedc1b authorpennae <github@quasiparticle.net> dateTue 14 Dec 2021, 03:41 (5 years ago) parent926abc0
1 file changed+2−1
nixos/lib/make-options-doc/default.nix+2−1
nixos/lib/make-options-doc/default.nix+2−1
@@ -118,8 +118,9 @@ in rec {
118118 # The actual generation of the xml file is done in nix purely for the convenience
119119 # of not having to generate the xml some other way
120120 optionsXML = pkgs.runCommand "options.xml" {} ''
121+ export NIX_STORE_DIR=$TMPDIR/store
122+ export NIX_STATE_DIR=$TMPDIR/state
121123 ${pkgs.nix}/bin/nix-instantiate \
122− --store dummy:// \
123124 --eval --xml --strict ${./optionsJSONtoXML.nix} \
124125 --argstr file ${optionsJSON}/share/doc/nixos/options.json \
125126 > "$out"