Skip to content

Commit

Permalink
Merge pull request #11490 from bryanhonof/bryanhonof.add-mixenvironme…
Browse files Browse the repository at this point in the history
…nt-to-run

Add MixEnvironment to CmdRun
  • Loading branch information
edolstra authored Sep 12, 2024
2 parents bbef37b + 2226f98 commit 11452ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nix/run.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void execProgramInStore(ref<Store> store,

}

struct CmdRun : InstallableValueCommand
struct CmdRun : InstallableValueCommand, MixEnvironment
{
using InstallableCommand::run;

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

0 comments on commit 11452ce

Please sign in to comment.