nixpkgs/pkgs/development/lisp-modules-obsolete/from-quicklisp/quicklisp-beta-env.sh
Kasper Gałkowski bdc000263a lisp-modules: add back the two current implementations
This is to enable a smooth migration to the new one.
2023-04-02 11:14:49 +02:00

17 lines
360 B
Bash
Executable File

#! /bin/sh
WORK_DIR=$(mktemp -d "/tmp/ql-venv-XXXXXX")
mkdir -p "${1:-.}"
TARGET="$(cd "${1:-.}"; pwd)"
curl http://beta.quicklisp.org/quicklisp.lisp > "$WORK_DIR/ql.lisp"
sbcl --noinform \
--load "$WORK_DIR/ql.lisp" \
--eval "(quicklisp-quickstart:install :path \"$TARGET/\")" \
--eval "(cl-user::quit)" \
--script
rm -rf "$WORK_DIR"