From a300c90f8f1af04dcb01e4326b8ea74cc8cbbed8 Mon Sep 17 00:00:00 2001 From: David Meister Date: Sat, 23 May 2026 10:13:18 +0000 Subject: [PATCH 1/2] feat: add jq to sol-shell build inputs --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index 054939e..c0e477f 100644 --- a/flake.nix +++ b/flake.nix @@ -64,6 +64,10 @@ pkgs.slither-analyzer pkgs.solc_0_8_25 pkgs.reuse + # jq is the canonical tool for extracting stable subsets of + # forge build artifacts via `vm.ffi` in CopyArtifacts.sol-style + # scripts. + pkgs.jq ]; node-build-inputs = [ From db6bc9d56b0722928508c83b4e97240bbea17d69 Mon Sep 17 00:00:00 2001 From: David Meister Date: Sat, 23 May 2026 10:14:57 +0000 Subject: [PATCH 2/2] test: sol-shell has jq --- flake.nix | 1 + test/bats/devshell/sol-shell/jq.test.bats | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 test/bats/devshell/sol-shell/jq.test.bats diff --git a/flake.nix b/flake.nix index c0e477f..6af1a2c 100644 --- a/flake.nix +++ b/flake.nix @@ -336,6 +336,7 @@ bats test/bats/devshell/sol-shell/solc.test.bats bats test/bats/devshell/sol-shell/reuse.test.bats bats test/bats/devshell/sol-shell/gh.test.bats + bats test/bats/devshell/sol-shell/jq.test.bats bats test/bats/devshell/sol-shell/sol-tasks.test.bats bats test/bats/devshell/sol-shell/slim.test.bats bats test/bats/devshell/sol-shell/closure.test.bats diff --git a/test/bats/devshell/sol-shell/jq.test.bats b/test/bats/devshell/sol-shell/jq.test.bats new file mode 100644 index 0000000..ee3e391 --- /dev/null +++ b/test/bats/devshell/sol-shell/jq.test.bats @@ -0,0 +1,4 @@ +@test "jq should be available on PATH" { + run jq --version + [ "$status" -eq 0 ] +}