aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2020-10-02 14:10:15 +0200
committerMathieu Othacehe <othacehe@gnu.org>2020-10-02 14:10:15 +0200
commitd27dbeb9d8f6c3a4c1d2fdbeb432717c119b73d1 (patch)
treeafad3e106195ea082b10c3b1e227fe9327e60cfe
parentf469fb927fc5c0ce62bf2040767117818c97ef7e (diff)
downloadguix-d27dbeb9d8f6c3a4c1d2fdbeb432717c119b73d1.tar.gz
guix-d27dbeb9d8f6c3a4c1d2fdbeb432717c119b73d1.zip
gnu: guix: Install OpenRC init files to $(prefix)/etc.
This is a followup to cabac732deffafc796537658a6c33c6c4aec821e. * gnu/packages/package-management.scm (guix)[arguments]: In 'bootstrap' phase, change "openrcservicedir" in 'nix/local.mk'.
-rw-r--r--gnu/packages/package-management.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 99f78f2ac8..1b8728336d 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -198,6 +198,13 @@
(string-append "sysvinitservicedir = \
$(prefix)/etc/init.d\n")))
+ ;; Install OpenRC init files to $(prefix)/etc rather
+ ;; than to /etc.
+ (substitute* "nix/local.mk"
+ (("^openrcservicedir = .*$")
+ (string-append "openrcservicedir = \
+$(prefix)/etc/init.d\n")))
+
(invoke "sh" "bootstrap")))
(add-before 'build 'use-host-compressors
(lambda* (#:key inputs target #:allow-other-keys)