mirror of
https://github.com/NixOS/nix
synced 2025-07-05 16:31:47 +02:00
feat: add flag set-env-var
to MixEnvironment
This commit is contained in:
parent
655bfa6b59
commit
0b790b4849
4 changed files with 76 additions and 33 deletions
|
@ -315,17 +315,18 @@ struct MixDefaultProfile : MixProfile
|
|||
|
||||
struct MixEnvironment : virtual Args {
|
||||
|
||||
StringSet keep, unset;
|
||||
Strings stringsEnv;
|
||||
std::vector<char*> vectorEnv;
|
||||
StringSet keepVars;
|
||||
StringSet unsetVars;
|
||||
std::map<std::string, std::string> setVars;
|
||||
bool ignoreEnvironment;
|
||||
|
||||
MixEnvironment();
|
||||
|
||||
/***
|
||||
* Modify global environ based on `ignoreEnvironment`, `keep`, and
|
||||
* `unset`. It's expected that exec will be called before this class
|
||||
* goes out of scope, otherwise `environ` will become invalid.
|
||||
* Modify global environ based on `ignoreEnvironment`, `keep`,
|
||||
* `unset`, and `added`. It's expected that exec will be called
|
||||
* before this class goes out of scope, otherwise `environ` will
|
||||
* become invalid.
|
||||
*/
|
||||
void setEnviron();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue