Skip to content

Commit

Permalink
nix eval: add --argstr and --arg support
Browse files Browse the repository at this point in the history
  • Loading branch information
elikoga committed Sep 18, 2023
1 parent 2a52ec4 commit 18830a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/nix/eval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ struct CmdEval : MixJSON, InstallableValueCommand, MixReadOnlyOption
v = vRes;
}

auto autoArgs = getAutoArgs(*state);
auto valPost = state->allocValue();
state->autoCallFunction(*autoArgs, *v, *valPost);
v = valPost;

if (writeTo) {
stopProgressBar();

Expand Down

0 comments on commit 18830a5

Please sign in to comment.