mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add shepherd-for-home.
* gnu/packages/admin.scm (shepherd-for-home): New variable. Change-Id: If66c7e7b688de239ca862326b51592b43ba22c25 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Modified-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
b79fcdf444
commit
de247e4057
1 changed files with 29 additions and 0 deletions
|
@ -603,6 +603,35 @@ interface and is based on GNU Guile.")
|
||||||
|
|
||||||
(define-public shepherd shepherd-0.10)
|
(define-public shepherd shepherd-0.10)
|
||||||
|
|
||||||
|
(define-public shepherd-for-home
|
||||||
|
;; Variant of shepherd without 'sbin' to not shadow 'halt' and 'reboot' on
|
||||||
|
;; foreign distributions.
|
||||||
|
(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")))))
|
||||||
|
(synopsis
|
||||||
|
"The Shepherd for Guix Home, without @command{halt} and @command{reboot}")
|
||||||
|
(native-inputs '())
|
||||||
|
(inputs (list base))))))
|
||||||
|
|
||||||
(define-public guile2.2-shepherd
|
(define-public guile2.2-shepherd
|
||||||
(package
|
(package
|
||||||
(inherit shepherd-0.10)
|
(inherit shepherd-0.10)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue