summaryrefslogtreecommitdiff
path: root/Biz/Ide
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-10-03 22:22:45 -0400
committerBen Sima <ben@bsima.me>2023-10-03 22:22:45 -0400
commit6107f8178e26ada67e5d5ec60501e24528b3db56 (patch)
tree6e7d8bc57231b841545c6e3add46eb51c64a5946 /Biz/Ide
parent4226cbd8020253b010fb44d395db12efe68e1272 (diff)
Add rundeps feature to bild
This allows me to specify runtime dependencies, not just system or language deps.
Diffstat (limited to 'Biz/Ide')
-rwxr-xr-xBiz/Ide/repl8
1 files changed, 7 insertions, 1 deletions
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")