aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
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);