From 3cc99e73287675192873fc694138ee1b299c6c46 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 16 Aug 2024 13:42:25 +0200 Subject: [PATCH] fix: makefile should use only locked channels --- Makefile | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 7d7b544..c5d0f03 100644 --- a/Makefile +++ b/Makefile @@ -2,30 +2,31 @@ SYSTEM_ARGS = -L ./modules ./config.scm HOME_ARGS = -L ./home/modules ./home/home-configuration.scm +TIMEMACHINE = guix time-machine -C channels.scm -system-build: - guix system build $(SYSTEM_ARGS) +system-build: channels-lock.scm + $(TIMEMACHINE) -- guix system build $(SYSTEM_ARGS) -system-reconfigure: - guix system reconfigure $(SYSTEM_ARGS) +system-reconfigure: channels-lock.scm + $(TIMEMACHINE) -- guix system reconfigure $(SYSTEM_ARGS) -system-vm: - guix system vm $(SYSTEM_ARGS) +system-vm: channels-lock.scm + $(TIMEMACHINE) -- guix system vm $(SYSTEM_ARGS) -system-container: - guix system container $(SYSTEM_ARGS) +system-container: channels-lock.scm + $(TIMEMACHINE) -- guix system container $(SYSTEM_ARGS) -home-build: - guix home build $(HOME_ARGS) +home-build: channels-lock.scm + $(TIMEMACHINE) -- guix home build $(HOME_ARGS) -home-reconfigure: - guix home reconfigure $(HOME_ARGS) +home-reconfigure: channels-lock.scm + $(TIMEMACHINE) -- guix home reconfigure $(HOME_ARGS) -home-container: - guix home container $(HOME_ARGS) +home-container: channels-lock.scm + $(TIMEMACHINE) -- guix home container $(HOME_ARGS) channels-lock.scm: channels.scm - guix time-machine -C channels.scm -- describe -f channels > channels-lock.scm + $(TIMEMACHINE) -- describe -f channels > channels-lock.scm pull: channels-lock.scm guix pull -C channels-lock.scm -- 2.48.1