diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libmain/shared.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index b032b255951e..395d9c8b4cd6 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -69,7 +69,7 @@ static void initAndRun(int argc, char * * argv) } /* Setup Nix paths. */ - nixStore = canonPath(getEnv("NIX_STORE_DIR", NIX_STORE_DIR)); + nixStore = canonPath(getEnv("NIX_STORE_DIR", getEnv("NIX_STORE", NIX_STORE_DIR))); nixDataDir = canonPath(getEnv("NIX_DATA_DIR", NIX_DATA_DIR)); nixLogDir = canonPath(getEnv("NIX_LOG_DIR", NIX_LOG_DIR)); nixStateDir = canonPath(getEnv("NIX_STATE_DIR", NIX_STATE_DIR)); |