diff options
author | Matthew Mazzanti <matthew.mazzanti@gmail.com> | 2021-11-11 11:58:24 -0500 |
---|---|---|
committer | Matthew Mazzanti <matthew.mazzanti@gmail.com> | 2021-11-11 12:04:36 -0500 |
commit | a923032c74a4705d8ceac13a67f5cf8e7f6e708b (patch) | |
tree | b59f29987f78866ac26bf727a92d869cfffc37d8 | |
parent | a7b43a222b87585fb166662460d3cef875370e5c (diff) | |
download | nixpkgs-a923032c74a4705d8ceac13a67f5cf8e7f6e708b.tar nixpkgs-a923032c74a4705d8ceac13a67f5cf8e7f6e708b.tar.gz nixpkgs-a923032c74a4705d8ceac13a67f5cf8e7f6e708b.tar.bz2 nixpkgs-a923032c74a4705d8ceac13a67f5cf8e7f6e708b.tar.lz nixpkgs-a923032c74a4705d8ceac13a67f5cf8e7f6e708b.tar.xz nixpkgs-a923032c74a4705d8ceac13a67f5cf8e7f6e708b.tar.zst nixpkgs-a923032c74a4705d8ceac13a67f5cf8e7f6e708b.zip |
metrics: set NIX_STORE_DIR
Mirror ca5ecbed4b5775f873fa15d7bf064b00d9e2862a to workaround NIX_STATE_DIR errors. As with the other workaround, see: https://github.com/NixOS/nix/issues/5495#issuecomment-963949707
-rw-r--r-- | pkgs/top-level/metrics.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/top-level/metrics.nix b/pkgs/top-level/metrics.nix index c045439da1a..1decb810f97 100644 --- a/pkgs/top-level/metrics.nix +++ b/pkgs/top-level/metrics.nix @@ -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 |