Skip to content

Commit

Permalink
feat(run): inherit from MixEnvironment
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanhonof committed Sep 12, 2024
1 parent a09ae84 commit ce5a9c2
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 ce5a9c2

Please sign in to comment.