From ce84e507e13de389c023ce42c29bbbea515f67d6 Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Fri, 31 Jan 2025 12:13:41 +0200 Subject: feat(guest.nix): Separate calling into it's own function and print the current zkVM which is executing --- guest.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'guest.nix') diff --git a/guest.nix b/guest.nix index 9dff41d..9d3086c 100644 --- a/guest.nix +++ b/guest.nix @@ -12,8 +12,13 @@ writeShellApplication { [] zkvms; - text = lib.foldr - (zkvm: accum: accum + hostPackages."${zkvm}/${guest}" + "/bin/${zkvm}_${guest} \"$@\"\n") + text = '' + runZKVM() { + echo "$1" + "$@" + } + '' + lib.foldr + (zkvm: accum: accum + "runZKVM \"${hostPackages."${zkvm}/${guest}"}/bin/${zkvm}_${guest}\" \"$@\"\n") "" zkvms; } -- cgit v1.2.3