metrics: set NIX_STORE_DIR

Mirror ca5ecbed4b to workaround
NIX_STATE_DIR errors.

As with the other workaround, see:
https://github.com/NixOS/nix/issues/5495#issuecomment-963949707
This commit is contained in:
Matthew Mazzanti 2021-11-11 11:58:24 -05:00
parent a7b43a222b
commit a923032c74

View file

@ -8,7 +8,8 @@ runCommand "nixpkgs-metrics"
#requiredSystemFeatures = [ "benchmark" ]; # dedicated machine, by @vcunat last time
}
''
export NIX_STATE_DIR=$TMPDIR
export NIX_STORE_DIR=$TMPDIR/store
export NIX_STATE_DIR=$TMPDIR/state
export NIX_PAGER=
nix-store --init