From 6107f8178e26ada67e5d5ec60501e24528b3db56 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 3 Oct 2023 22:22:45 -0400 Subject: Add rundeps feature to bild This allows me to specify runtime dependencies, not just system or language deps. --- Biz/Ide/repl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Biz/Ide') diff --git a/Biz/Ide/repl b/Biz/Ide/repl index 7230edd..b10f0f0 100755 --- a/Biz/Ide/repl +++ b/Biz/Ide/repl @@ -28,14 +28,20 @@ fi json=$(bild --json ${targets[@]}) langdeps=$(jq --raw-output '.[].langdeps | join(" ")' <<< $json) sysdeps=$(jq --raw-output '.[].sysdeps | join(" ")' <<< $json) + rundeps=$(jq --raw-output '.[].rundeps | join(" ")' <<< $json) exts=$(jq --raw-output '.[].namespace.ext' <<< $json | sort | uniq) packageSet=$(jq --raw-output '.[].packageSet' <<< $json) module=$(jq --raw-output '.[].mainModule' <<< $json) BILD="(import ${CODEROOT:?}/Biz/Bild.nix {})" - for lib in ${sysdeps[@]}; do + for lib in ${sysdeps[@]} + do flags+=(--packages "$BILD.pkgs.${lib}") flags+=(--packages "$BILD.pkgs.pkg-config") done + for lib in ${rundeps[@]} + do + flags+=(--packages "$BILD.pkgs.${lib}") + done case $exts in C) flags+=(--packages "$BILD.pkgs.gcc") -- cgit v1.2.3