-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
64 lines (47 loc) · 1.43 KB
/
Makefile
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
# profiles.mk provides guix version specified by rde/channels-lock.scm
# To rebuild channels-lock.scm use `make -B rde/channels-lock.scm`
include profiles.mk
# Also defined in .envrc to make proper guix version available project-wide
GUIX_PROFILE=target/profiles/guix
GUIX=GUILE_LOAD_PATH="../rde/src:../rde/tests:." GUILE_LOAD_COMPILED_PATH="" ${GUIX_PROFILE}/bin/guix
HOST=$(shell cat /etc/hostname)
NPROCS=$(shell grep -c ^processor /proc/cpuinfo)
CONFIGS=./config.scm
PULL_EXTRA_OPTIONS=
# --allow-downgrades
ROOT_MOUNT_POINT=/mnt
VERSION=latest
# hr: home reconfigure
# hb: home build
# sr: system reconfigure
# sb: system build
repl:
${GUIX} repl \
-L ../files/emacs/gider/src --listen=tcp:37146
ares-rs:
${GUIX} shell guile-next guile-ares-rs \
-e '(@ (rde packages package-management) guix-from-channels-lock)' \
-- guile \
-c "((@ (nrepl server) run-nrepl-server) #:port 7888)"
hb: guix
TARGET=${HOST}-he ${GUIX} home \
build --cores=${NPROCS} ${CONFIGS}
hr: guix
TARGET=${HOST}-he ${GUIX} home \
reconfigure --cores=${NPROCS} ${CONFIGS}
sb: guix
TARGET=${HOST}-os ${GUIX} system \
build --cores=${NPROCS} ${CONFIGS}
sr: guix
TARGET=${HOST}-os ${GUIX} system \
reconfigure --cores=${NPROCS} ${CONFIGS}
cow-store:
sudo herd start cow-store ${ROOT_MOUNT_POINT}
init: guix
TARGET=${HOSTNAME}-os ${GUIX} system \
init ${CONFIGS} ${ROOT_MOUNT_POINT}
target:
mkdir -p target
clean-target:
rm -rf ./target
clean: clean-target