-
Notifications
You must be signed in to change notification settings - Fork 5
/
shell.nix
85 lines (76 loc) · 1.65 KB
/
shell.nix
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
libraries = [
openssl
sqlite
readline
];
lispWithPackages = pkgs.lispPackages_new.lispWithPackages;
sbcl = (lispWithPackages "${pkgs.sbcl}/bin/sbcl --script"
(p: [
p.asdf
p.alexandria
p.cacle
p.can
p.cl-ansi-text
p.cl-json
p.cl-ppcre
p.cl-slug
p.clss
p.dbd-sqlite3
p.dexador
p.djula
p.easy-routes
p.function-cache
p.gettext
p.hunchentoot
p.local-time
p.local-time-duration
p.log4cl
p.lquery
p.mito
p.mito-auth
p.parse-float
p.parse-number
p.plump
p.replic
p.serapeum
p.str
p.trivial-backtrace
p.unix-opts
p.deploy
p.fiveam
p.swank
p.slynk
]));
# deps = stdenv.mkDerivation {
# name = "bookshops-deps";
# src = ./openbookstore.asd;
# phases = [ "installPhase" ];
# installPhase = ''
# echo Dependencies: >> $out
# ${sbcl}/bin/sbcl \
# --noinform \
# --non-interactive \
# --eval '(require :asdf)' \
# --eval '(asdf:load-asd "'$src'")' \
# --eval '(format t "~{ - ~a~^~&~}" (asdf:system-depends-on (asdf:find-system "openbookstore")))' \
# | sort >> $out
# '';
# };
in mkShell {
buildInputs = with pkgs; [
rlwrap
sbcl
gnumake
gettext
python310Packages.pygments
] ++ libraries;
shellHook = ''
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath(libraries)}:."
# fstamour: I run it on a different port because 4242 is
# already used on my computer
export OBS_PORT=4343
'';
}