source: dotfiles/guix/rde/profiles.mk@ 420782f

Last change on this file since 420782f was 420782f, checked in by Mikhail Kirillov <mikhail.kirillov@…>, on Apr 19, 2023 at 9:25:51 PM

Add rde

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[420782f]1#
2# Profiles
3#
4
5# Store items doesn't have useful mtime, so we rely on guix.lock to prevent
6# unecessary rebuilds
7guix: target/guix-time-marker
8
9target/profiles:
10 mkdir -p target/profiles
11
12target/guix-time-marker: rde/channels-lock.scm
13 make target/profiles/guix
14 touch $@
15
16target/profiles/guix: target/profiles rde/channels-lock.scm
17 guix pull -C rde/channels-lock.scm -p ${GUIX_PROFILE} \
18 ${PULL_EXTRA_OPTIONS}
19
20target/profiles/guix-local: target/profiles rde/channels-lock-local.scm
21 guix pull -C rde/channels-lock-local.scm -p ${GUIX_PROFILE} \
22 ${PULL_EXTRA_OPTIONS}
23
24rde/channels-lock.scm: rde/channels.scm
25 echo -e "(use-modules (guix channels))\n" > ./rde/channels-lock-tmp.scm
26 guix time-machine -C ./rde/channels.scm -- \
27 describe -f channels >> ./rde/channels-lock-tmp.scm
28 mv ./rde/channels-lock-tmp.scm ./rde/channels-lock.scm
29
30rde/channels-lock-local.scm: rde/channels-local.scm
31 echo -e "(use-modules (guix channels))\n" > ./rde/channels-lock-tmp.scm
32 guix time-machine -C ./rde/channels-local.scm -- \
33 describe -f channels >> ./rde/channels-lock-tmp.scm
34 mv ./rde/channels-lock-tmp.scm ./rde/channels-lock-local.scm
Note: See TracBrowser for help on using the repository browser.