aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-31 18:19:44 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-31 18:19:44 -0400
commit90d9c58d4dabb370849cd523fb9ee471e8140b76 (patch)
treecaa1ed9ad85e20106df6ad2ab396e46524953b37 /src/libstore/globals.hh
parent89a8207029e7f6d5cfe3ab972c49ea46f5b9a784 (diff)
Pass all --option flags to the daemon
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index 5783d9bf3..1fb196db2 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -10,6 +10,8 @@ namespace nix {
struct Settings {
+ typedef std::map<string, string> SettingsMap;
+
Settings();
void processEnvironment();
@@ -22,6 +24,8 @@ struct Settings {
string pack();
+ SettingsMap getOverrides();
+
/* The directory where we store sources and derived files. */
Path nixStore;
@@ -172,9 +176,7 @@ struct Settings {
bool envKeepDerivations;
private:
- typedef std::map<string, string> SettingsMap;
-
- SettingsMap settings;
+ SettingsMap settings, overrides;
void get(string & res, const string & name);
void get(bool & res, const string & name);