~ruther/guix-config

e3ddc9060cf9cbd1e61c0fde198ae2645e474aa4 — Rutherther 2 months ago 8240afc
fix: some fixes in makefile
1 files changed, 13 insertions(+), 12 deletions(-)

M Makefile
M Makefile => Makefile +13 -12
@@ 4,8 4,9 @@ SYSTEM_ARGS = -L ./modules ./config.scm
HOME_ARGS = -L ./home/modules ./home/home-configuration.scm
TIMEMACHINE = guix time-machine -C channels-lock.scm
EXTRA_ARGS ?=
EXTRA_TIMEMACHINE_ARGS ?=

GUIX=$(TIMEMACHINE) --
GUIX=$(TIMEMACHINE) $(EXTRA_TIMEMACHINE_ARGS) --

target: channels-lock.scm channels-profile.scm channels-manifest.scm
	rm -rf target


@@ 14,7 15,7 @@ target: channels-lock.scm channels-profile.scm channels-manifest.scm
    -f ./channels-profile.scm \
		-r ./target/guix

pull: channels-lock.scm channels-manifest.scm target
pull: channels-lock.scm channels-manifest.scm
  # TODO: investigate what guix version to use here.
  # How to ensure it is not built twice unnecessarily?
  # The problem is that guix-for-channels actually produces


@@ 22,32 23,32 @@ pull: channels-lock.scm channels-manifest.scm target
  # Maybe it would make sense to have sort of a bootstrap guix
  # built that will not be updated so regularly, and be used
  # only to obtain the guix instances?
	guix package --profile='~/.config/guix/current' \
	guix package --profile='/var/guix/profiles/per-user/ruther/current-guix' \
    --manifest=./channels-manifest.scm

system-build: channels-lock.scm target
system-build: channels-lock.scm
	$(GUIX) system build $(SYSTEM_ARGS) $(EXTRA_ARGS)

system-reconfigure: channels-lock.scm target
system-reconfigure: channels-lock.scm
	$(GUIX) system reconfigure $(SYSTEM_ARGS) --cores=10 --max-jobs=5 $(EXTRA_ARGS)

system-vm: channels-lock.scm target
system-vm: channels-lock.scm
	$(GUIX) system vm $(SYSTEM_ARGS) $(EXTRA_ARGS)

system-container: channels-lock.scm target
system-container: channels-lock.scm
	$(GUIX) system container $(SYSTEM_ARGS) $(EXTRA_ARGS)

home-build: channels-lock.scm target
home-build: channels-lock.scm
	$(GUIX) home build $(HOME_ARGS) $(EXTRA_ARGS)

home-reconfigure: channels-lock.scm target
home-reconfigure: channels-lock.scm
	$(GUIX) home reconfigure $(HOME_ARGS) --cores=10 --max-jobs=5 $(EXTRA_ARGS)

home-container: channels-lock.scm target
home-container: channels-lock.scm
	$(GUIX) home container $(HOME_ARGS) $(EXTRA_ARGS)

system-repl: channels-lock.scm target
system-repl: channels-lock.scm
	$(GUIX) repl -L modules -i ./repl-init.scm $(EXTRA_ARGS)

channels-lock.scm: channels.scm
	guix time-machine -C channels.scm -- describe -f channels $(EXTRA_ARGS) > channels-lock.scm
	guix time-machine -C channels.scm $(EXTRA_TIMEMACHINE_ARGS) -- describe -f channels $(EXTRA_ARGS) > channels-lock.scm