-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
65 lines (59 loc) · 1.66 KB
/
Copy pathshell.nix
File metadata and controls
65 lines (59 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{ pkgs ? import <nixpkgs> {} }:
let
sbclEnv = pkgs.sbcl.withPackages (ps: with ps; [
bordeaux-threads
sqlite
com_dot_inuoe_dot_jzon
dexador
hunchentoot
clack
clack-handler-hunchentoot
fiveam
check-it
trivial-signal
cl-jschema
]);
in
pkgs.mkShell {
buildInputs = with pkgs; [
# Compiler & Lisp environment
sbclEnv
rlwrap
cl-launch
# System libraries required by Lisp CFFI libraries
sqlite
ncurses
openssl
pkg-config
# Developer tools & dependencies
git
just
tmux
nickel
bun
nodePackages.node-gyp
python3
gnumake
];
shellHook = ''
export PREDICATE_PLUGIN_SRC="/var/home/nrd/.gemini/antigravity-cli/plugins/predicate"
# Ensure CFFI finds system libraries in Nix environments
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath (with pkgs; [ sqlite ncurses openssl ])}:$LD_LIBRARY_PATH"
sbcl() {
local args=()
for arg in "$@"; do
if [ "$arg" = "(asdf:load-system :librecode-runner)" ]; then
args+=("(progn (asdf:load-asd (merge-pathnames \"librecode.asd\" *default-pathname-defaults*)) (asdf:load-system :librecode-runner))")
elif [ "$arg" = "(asdf:load-system :librecode-meta)" ]; then
args+=("(progn (asdf:load-asd (merge-pathnames \"librecode.asd\" *default-pathname-defaults*)) (asdf:load-system :librecode-meta))")
else
args+=("$arg")
fi
done
command sbcl "''${args[@]}"
}
echo "====================================================="
echo " librecode Development Shell"
echo "====================================================="
'';
}