From 18830a5988ec7820b907ee1ce4c94f190e61a945 Mon Sep 17 00:00:00 2001 From: Eli Kogan-Wang Date: Tue, 19 Sep 2023 00:27:28 +0200 Subject: [PATCH] nix eval: add --argstr and --arg support --- src/nix/eval.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nix/eval.cc b/src/nix/eval.cc index d880bef0a7b..1d78b8dbd58 100644 --- a/src/nix/eval.cc +++ b/src/nix/eval.cc @@ -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();