summaryrefslogtreecommitdiff
path: root/Biz/Ide
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-07-19 14:22:53 -0400
committerBen Sima <ben@bsima.me>2022-07-19 14:25:23 -0400
commit08e10dec6b00cedf7aa6395d195a32860e35a690 (patch)
treec1e0c93de05f5fc5c1f4dcb0dce7bcbdaba815c1 /Biz/Ide
parentde3edfca6fd628494be5e04ff3dbe21a54441163 (diff)
Provision lisp repls with nix
asdf seems to always be necessary for any other packages to work, so I just include that in the call to nix-shell, and swank is included because it's just useful to start a repl server.
Diffstat (limited to 'Biz/Ide')
-rwxr-xr-xBiz/Ide/repl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Biz/Ide/repl b/Biz/Ide/repl
index 0a6815f..7c2e15c 100755
--- a/Biz/Ide/repl
+++ b/Biz/Ide/repl
@@ -23,9 +23,9 @@
exit 1
;;
Lisp)
- swank-lisp-launcher.sh \
- --eval "(asdf:load-system 'swank)" \
- --eval "(swank:create-server :dont-close t)"
+ nix-shell \
+ --packages "(import $BIZ_ROOT/Biz/Bild.nix {}).private.sbclWith (p: with p; [asdf swank $langdeps])" \
+ --run "sbcl --eval '(require :asdf)' --eval '(require :swank)' --eval '(swank:create-server)' --load $targets"
;;
*)
echo "unsupported targets: ${targets[@]}"