-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (45 loc) · 1.15 KB
/
Copy pathMakefile
File metadata and controls
58 lines (45 loc) · 1.15 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
# base stubs
guix-time-machine = guix time-machine -C ./channels-lock.scm
guile-shell-default-args = \
guile-next \
guile-ares-rs \
-L channel \
--no-substitutes #--rebuild-cache
commonlisp-shell-default-args = \
sbcl \
sbcl-slynk \
-L channel \
-D -f guix.scm \
--rebuild-cache
nrepl-file = "ares.scm"
slynk-file = "repl.lisp"
guile = ${guile-shell-default-args} -- guile -L ./src
commonlisp = ${commonlisp-shell-default-args} -- sbcl --load ${slynk-file}
slynk:
guix shell ${commonlisp}
lsp:
guix shell \
-L channel \
sbcl sbcl-alive-lsp \
-D -f guix.scm \
--rebuild-cache \
-- sbcl \
--eval "(require :asdf)" \
--eval "(asdf:load-system :alive-lsp)" \
--eval "(alive/server:start)"
nrepl:
guix shell ${guile} -l ${nrepl-file}
build:
guix build -f guix.scm -L channel
sway-nrepl-cmd = "exec foot make nrepl; exec foot"
sway-tm/nrepl-cmd = "exec foot make tm/nrepl; exec foot"
sway+nrepl: # have to create tmpfile for `sway -c`
$(eval TMP := $(shell mktemp))
@echo ${sway-nrepl-cmd} >> $(TMP)
sway -c $(TMP)
rm -rf $(TMP)
sway+tm/nrepl:
$(eval TMP := $(shell mktemp))
@echo ${sway-tm/nrepl-cmd} >> $(TMP)
sway -c $(TMP)
rm -rf $(TMP)