From: Dariqq <dariqq@posteo.net>
To: 73903@debbugs.gnu.org
Cc: Dariqq <dariqq@posteo.net>, Sharlatan Hellseher <sharlatanus@gmail.com>
Subject: bug#73903: [PATCH 1/2] gnu: Add shepherd-for-home.
Date: Mon, 16 Dec 2024 21:33:12 +0000 [thread overview]
Message-ID: <eb03bd84723fc23f8ca3548442f4b44ba96a6891.1734384082.git.dariqq@posteo.net> (raw)
In-Reply-To: <cover.1734384082.git.dariqq@posteo.net>
* gnu/packages/admin.scm (shepherd-for-home): New variable.
Change-Id: If66c7e7b688de239ca862326b51592b43ba22c25
---
gnu/packages/admin.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 77d02baa4e..08ac3d582a 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -428,6 +428,33 @@ (define-public shepherd-1.0
(define-public shepherd shepherd-0.10)
+;; A variant of shepherd without sbin to not mask
+;; halt and reboot on foreign distributions
+(define-public shepherd-for-home
+ (let ((base shepherd-1.0))
+ (hidden-package
+ (package/inherit base
+ (name "shepherd-for-home")
+ (source #f)
+ (build-system trivial-build-system)
+ (arguments
+ (list
+ #:modules '((guix build union)
+ (guix build utils))
+ #:builder
+ #~(begin
+ (use-modules (guix build union)
+ (guix build utils))
+ (union-build #$output
+ (list #$(this-package-input "shepherd"))
+ #:create-all-directories? #t)
+ (delete-file-recursively
+ (string-append #$output "/sbin"))
+ (delete-file-recursively
+ (string-append #$output "/share/man/man8")))))
+ (native-inputs '())
+ (inputs (list base))))))
+
(define-public guile2.2-shepherd
(package
(inherit shepherd-0.10)
--
2.46.0
next prev parent reply other threads:[~2024-12-16 21:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-20 10:12 bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution Dariqq
2024-11-06 13:52 ` bug#73903: (no subject) Jakob Honal via Bug reports for GNU Guix
2024-11-10 11:51 ` bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution Ludovic Courtès
2024-11-10 15:57 ` Dariqq
2024-11-20 10:46 ` Ludovic Courtès
2024-11-21 16:21 ` Dariqq
2024-11-26 15:55 ` Ludovic Courtès
2024-11-26 18:49 ` Dariqq
2024-12-12 10:50 ` Ludovic Courtès
2024-12-16 21:33 ` bug#73903: [PATCH 0/2] Add shepherd-for-home and make it default Dariqq
2024-12-16 21:33 ` Dariqq [this message]
2024-12-16 21:33 ` bug#73903: [PATCH 2/2] gnu: home: Use shepherd-for-home as the default shepherd Dariqq
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eb03bd84723fc23f8ca3548442f4b44ba96a6891.1734384082.git.dariqq@posteo.net \
--to=dariqq@posteo.net \
--cc=73903@debbugs.gnu.org \
--cc=sharlatanus@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.