diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-07-06 15:30:37 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-07-06 15:30:37 +0000 |
commit | d51aede4afeb49182879f257b56394b70938028f (patch) | |
tree | cea0470eb2f38eb1c1d0adcbecc59cf78b25516e /src/libmain/shared.cc | |
parent | a945fb7905597ff67f285b39004f607f737b14e9 (diff) |
* Allow the canonical system name to be specified at runtime in the
Nix config file.
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r-- | src/libmain/shared.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index 97528f123..fb24e8329 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -93,6 +93,8 @@ static void initAndRun(int argc, char * * argv) nixDBPath = getEnv("NIX_DB_DIR", nixStateDir + "/db"); nixConfDir = canonPath(getEnv("NIX_CONF_DIR", NIX_CONF_DIR)); + thisSystem = querySetting("system", SYSTEM); + /* Catch SIGINT. */ struct sigaction act, oact; act.sa_handler = sigintHandler; |