nixpkgs-basic-release-checks: set NIX_STORE_DIR

With nix 2.4 the fact that we set NIX_STATE_DIR, but kept the original
store became a hard error. We work around it here by forcing the use of
a fresh, sandbox-local, store.

See regnat's wonderful analysis for more information:
https://github.com/NixOS/nix/issues/5495#issuecomment-963949707

+2 -1
+2 -1
pkgs/top-level/nixpkgs-basic-release-checks.nix
··· 3 3 pkgs.runCommand "nixpkgs-release-checks" { src = nixpkgs; buildInputs = [nix]; } '' 4 4 set -o pipefail 5 5 6 - export NIX_STATE_DIR=$TMPDIR 6 + export NIX_STORE_DIR=$TMPDIR/store 7 + export NIX_STATE_DIR=$TMPDIR/state 7 8 export NIX_PATH=nixpkgs=$TMPDIR/barf.nix 8 9 opts=(--option build-users-group "") 9 10 nix-store --init