[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Gu
From: |
Attila Lendvai |
Subject: |
[bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Guix. |
Date: |
Tue, 1 Mar 2022 19:45:18 +0100 |
This also updates shepherd-for-guix to the latest commit, so that the two
variants have a different version.
* gnu/packages/admin.scm (shepherd-for-guix): New variable.
---
v2: add the recommended comment and some edits to the other comments.
gnu/packages/admin.scm | 41 +++++++++++++++++++++++++++++++++++++++
gnu/services/shepherd.scm | 2 +-
2 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index c8f91aab0d..f43526b7d9 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -307,6 +307,47 @@ (define-public shepherd
(license license:gpl3+)
(home-page "https://www.gnu.org/software/shepherd/")))
+;; This is the Shepherd package used by Guix. This package variant
+;; allows us to add new features and fix bugs in Shepherd and use the
+;; new features in Guix, without having to go through the 'staging'
+;; branch, and without having to wait for a new release, see
+;; [TODO] in the manual.
+(define-public shepherd-for-guix
+ (let* ((version "0.8.1")
+ ;; If it's an unreleased commit:
+ (commit "7c380590164ea8ee40de46059d07e08a48963577")
+ ;; Use the below form if it's a release, and also set REVISION to #f.
+ ;; (commit (string-append "v" version))
+ (revision "1"))
+ (package
+ (inherit shepherd)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ ;; Build from git and add Autotools inputs, to make developing
+ ;; Shepherd easier. It enables easier package inheritance.
+ (url "https://git.savannah.gnu.org/git/shepherd.git/")
+ (commit commit)))
+ (sha256
+ (base32
+ "1hgkbl3fyzwi5vw63kbkswnf3viyfl52c5dzkx7vbkr4sj5ysz1g"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Build with -O1 to work around <https://bugs.gnu.org/48368>.
+ (substitute* "Makefile.am"
+ (("compile --target")
+ "compile -O1 --target"))))))
+ (version (if revision
+ (git-version version revision commit)
+ version))
+ (native-inputs
+ (modify-inputs (package-native-inputs shepherd)
+ (prepend autoconf automake gettext-minimal help2man texinfo)))
+ (description "A package variant for use in Guix. It helps lowering
+the build time of Guix when working on Shepherd."))))
+
(define-public guile2.2-shepherd
(package
(inherit shepherd)
diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm
index b44dbf9d9f..991194ffe6 100644
--- a/gnu/services/shepherd.scm
+++ b/gnu/services/shepherd.scm
@@ -88,7 +88,7 @@ (define-record-type* <shepherd-configuration>
shepherd-configuration make-shepherd-configuration
shepherd-configuration?
(shepherd shepherd-configuration-shepherd
- (default shepherd)) ; file-like
+ (default shepherd-for-guix)) ; file-like
(services shepherd-configuration-services
(default '()))) ; list of <shepherd-service>
--
2.34.0
- [bug#54216] [PATCH] gnu: shepherd-for-guix: New package for use in Guix., Attila Lendvai, 2022/03/01
- [bug#54216] [PATCH] gnu: shepherd-for-guix: New package for use in Guix., Maxime Devos, 2022/03/01
- [bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Guix.,
Attila Lendvai <=
- [bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Guix., Maxime Devos, 2022/03/01
- [bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Guix., Attila Lendvai, 2022/03/01
- [bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Guix., zimoun, 2022/03/02
- [bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Guix., Leo Famulari, 2022/03/02
- [bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Guix., Maxime Devos, 2022/03/03
- [bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Guix., zimoun, 2022/03/03
- [bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Guix., Leo Famulari, 2022/03/05
- [bug#54216] [PATCH v2] gnu: shepherd-for-guix: New package for use in Guix., Maxime Devos, 2022/03/05
- [bug#54216] [PATCH staging] gnu: shepherd: Build it from git, and clean up shepherd-for-guix., Maxime Devos, 2022/03/03
- [bug#54216] [PATCH staging] gnu: shepherd: Build it from git, and clean up shepherd-for-guix., zimoun, 2022/03/03