From a923032c74a4705d8ceac13a67f5cf8e7f6e708b Mon Sep 17 00:00:00 2001 From: Matthew Mazzanti Date: Thu, 11 Nov 2021 11:58:24 -0500 Subject: [PATCH] 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 --- pkgs/top-level/metrics.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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