diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-07-06T15·30+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-07-06T15·30+0000 |
commit | d51aede4afeb49182879f257b56394b70938028f (patch) | |
tree | cea0470eb2f38eb1c1d0adcbecc59cf78b25516e /src/libmain | |
parent | a945fb7905597ff67f285b39004f607f737b14e9 (diff) |
* Allow the canonical system name to be specified at runtime in the
Nix config file.
Diffstat (limited to 'src/libmain')
-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 97528f123e4a..fb24e832980c 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; |