From 6c2346f4a2a4f746703ad1d53f2152da971ad497 Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Fri, 3 Jun 2022 19:52:49 +0200 Subject: [PATCH] Preserve `guix home` and `etags` instructions in a Makefile. --- Makefile | 15 +++++++++++++++ README | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..76cc090 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +# Copyright (c) 2022 Jakub Czajka +# License: GPL-3.0 or later. + +guix-profile := ~/.guix-home/profile +guix-store := /gnu/store +guix-version := $(shell guix show guix | sed -n '/^version/s/^.*: //gp') + +home: + GUIX_PACKAGE_PATH=`pwd` guix home reconfigure home.scm + . $(guix-profile)/etc/profile + +tags: + find $(guix-store) -wholename "*guix-$(guix-version)*.scm" -or \ + -wholename "*guix-module-union*.scm" | xargs etags + find `pwd` -name "*.scm" | xargs etags --append diff --git a/README b/README index 99d1f31..f0c139b 100644 --- a/README +++ b/README @@ -2,7 +2,8 @@ guix ==== System and home directory configuration for the GNU Guix operating system. It -installs programs and their configuration files (dotfiles). +installs programs and their configuration files (dotfiles). See Makefile for +installation instructions. Files ----- -- 2.39.5