1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-18 10:30:23 -04:00

Merge pull request #11490 from bryanhonof/bryanhonof.add-mixenvironment-to-run

Add MixEnvironment to CmdRun
This commit is contained in:
Eelco Dolstra 2024-09-12 20:29:16 +02:00 committed by GitHub
commit 11452ce674
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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