From 27a631b2c94df80ac5da8c97b66a3e99e1813811 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 3 Aug 2022 14:11:18 -0400 Subject: Print bild JSON analysis as a dictionary instead of a stream --- Biz/Ide/repl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Biz/Ide') diff --git a/Biz/Ide/repl b/Biz/Ide/repl index a8fc124..8f92fba 100755 --- a/Biz/Ide/repl +++ b/Biz/Ide/repl @@ -26,9 +26,9 @@ fi fi targets=${@:?} json=$(bild --json ${targets[@]}) - langdeps=$(jq --raw-output '.langdeps | join(" ")' <<< $json) - sysdeps=$(jq --raw-output '.sysdeps | join(" ")' <<< $json) - exts=$(jq --raw-output '.namespace.ext' <<< $json | sort | uniq) + langdeps=$(jq --raw-output '.[].langdeps | join(" ")' <<< $json) + sysdeps=$(jq --raw-output '.[].sysdeps | join(" ")' <<< $json) + exts=$(jq --raw-output '.[].namespace.ext' <<< $json | sort | uniq) BILD="(import $BIZ_ROOT/Biz/Bild.nix {})" for lib in ${sysdeps[@]}; do flags+=(--packages "$BILD.private.nixpkgs.${lib}") -- cgit v1.2.3