summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ee4387d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
1.DEFAULT_GOAL := reconfigure
2
3CHANNELS_FILE=./channels-lock.scm
4GUIXTM=guix time-machine -C ${CHANNELS_FILE}
5
6GUIX=$(GUIXTM) --
7
8env:
9 guix build \
10 -e '((@ (gnu packages package-management) guix-for-channels) (load "${CHANNELS_FILE}"))' \
11 -r guix
12
13repl:
14 ${GUIX} shell guile-next guile-ares-rs \
15 -e '((@ (rde packages guix) make-guix-package) (load "${CHANNELS_FILE}"))' \
16 -e '((@ (rde packages guix) make-channels-package) (load "${CHANNELS_FILE}"))' \
17 -- guile \
18 -L ./src \
19 -c \
20 "(begin (use-modules (guix gexp)) ((@ (ares server) run-nrepl-server)))"
21
22reconfigure:
23 sudo -E ${GUIX} system -L ./src reconfigure \
24 -e "(@ (jd config) %os)" \
25 --substitute-urls='https://ci.guix.gnu.org https://bordeaux.guix.gnu.org https://substitutes.nonguix.org'