mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
Merge pull request #11490 from bryanhonof/bryanhonof.add-mixenvironment-to-run
Add MixEnvironment to CmdRun
This commit is contained in:
commit
11452ce674
1 changed files with 3 additions and 1 deletions
|
@ -75,7 +75,7 @@ void execProgramInStore(ref<Store> store,
|
|||
|
||||
}
|
||||
|
||||
struct CmdRun : InstallableValueCommand
|
||||
struct CmdRun : InstallableValueCommand, MixEnvironment
|
||||
{
|
||||
using InstallableCommand::run;
|
||||
|
||||
|
@ -135,6 +135,8 @@ struct CmdRun : InstallableValueCommand
|
|||
// we are about to exec out of this process without running C++ destructors.
|
||||
state->evalCaches.clear();
|
||||
|
||||
setEnviron();
|
||||
|
||||
execProgramInStore(store, UseLookupPath::DontUse, app.program, allArgs);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue