1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 13:41:15 +02:00

Pass all --option flags to the daemon

This commit is contained in:
Eelco Dolstra 2012-07-31 18:19:44 -04:00
parent 89a8207029
commit 90d9c58d4d
4 changed files with 30 additions and 3 deletions

View file

@ -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);