diff options
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r-- | src/libmain/shared.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index f608afd84898..40750779c531 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -69,10 +69,10 @@ static void initAndRun(int argc, char * * argv) } /* Setup Nix paths. */ - nixStore = getEnv("NIX_STORE_DIR", canonPath(NIX_STORE_DIR)); - nixDataDir = getEnv("NIX_DATA_DIR", canonPath(NIX_DATA_DIR)); - nixLogDir = getEnv("NIX_LOG_DIR", canonPath(NIX_LOG_DIR)); - nixStateDir = getEnv("NIX_STATE_DIR", canonPath(NIX_STATE_DIR)); + nixStore = canonPath(getEnv("NIX_STORE_DIR", 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)); nixDBPath = getEnv("NIX_DB_DIR", nixStateDir + "/db"); /* Check that the store directory and its parent are not |