Honor $NIX_STORE_DIR.

This commit is contained in:
Ludovic Courtès 2014-02-28 14:08:51 +01:00
parent f409d2b4f6
commit ccdb6f2b23

View file

@ -242,7 +242,7 @@ sub nix_cache_info :Path('nix-cache-info') :Args(0) {
$c->response->content_type('text/plain');
$c->stash->{plain}->{data} =
#"StoreDir: $Nix::Config::storeDir\n" . # FIXME
"StoreDir: /nix/store\n" .
"StoreDir: " . ($ENV{NIX_STORE_DIR} || "/nix/store") . "\n" .
"WantMassQuery: 0\n" .
# Give Hydra binary caches a very low priority (lower than the
# static binary cache http://nixos.org/binary-cache).