From ccdb6f2b23a610b23a7f80357f4c84587493f43d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 28 Feb 2014 14:08:51 +0100 Subject: [PATCH] Honor $NIX_STORE_DIR. --- src/lib/Hydra/Controller/Root.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index 3f816731..5cbe60ea 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -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).