[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: Add go-github-com-coreos-go-systemd-sdjournal.
From: |
guix-commits |
Subject: |
08/08: gnu: Add go-github-com-coreos-go-systemd-sdjournal. |
Date: |
Wed, 14 Feb 2024 18:04:02 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit 9ddb59f45291d38bb385fc513ccb2ebcbbb0c1cb
Author: Artyom V. Poptsov <poptsov.artyom@gmail.com>
AuthorDate: Mon Jan 29 21:29:46 2024 +0300
gnu: Add go-github-com-coreos-go-systemd-sdjournal.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-sdjournal):
New variable.
Change-Id: I48d6d6e888ab757363a16bae9f50c1ff955f287a
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 625abaf25b..41821af92b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -33,6 +33,7 @@
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages)
+ #:use-module (gnu packages freedesktop)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check)
@@ -298,6 +299,30 @@ logind API.")))
(description "Go bindings to systemd for registering
machines/containers.")))
+(define-public go-github-com-coreos-go-systemd-sdjournal
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-sdjournal")
+ (arguments
+ '(#:tests? #f ;Tests require D-Bus daemon running.
+ #:import-path "github.com/coreos/go-systemd/sdjournal"
+ #:unpack-path "github.com/coreos/go-systemd"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-sdjournal-header
+ (lambda* (#:key import-path #:allow-other-keys)
+ (substitute* (format #f
+ "src/~a/journal.go"
+ import-path)
+ (("systemd/sd-journal.h")
+ "elogind/sd-journal.h")
+ (("systemd/sd-id128.h")
+ "elogind/sd-id128.h")))))))
+ (inputs (list elogind))
+ (synopsis "Go bindings to systemd for journald")
+ (description "Go bindings to systemd for reading from journald by wrapping
+its C API.")))
+
(define-public go-github-com-coreos-go-systemd-unit
(package
(inherit go-github-com-coreos-go-systemd-activation)
- branch master updated (1a50943a36 -> 9ddb59f452), guix-commits, 2024/02/14
- 01/08: gnu: go-github-com-coreos-go-systemd-activation: Move to golang-xyz., guix-commits, 2024/02/14
- 08/08: gnu: Add go-github-com-coreos-go-systemd-sdjournal.,
guix-commits <=
- 05/08: gnu: Add go-github-com-coreos-go-systemd-login1., guix-commits, 2024/02/14
- 02/08: gnu: Add go-github-com-coreos-go-systemd-daemon., guix-commits, 2024/02/14
- 04/08: gnu: Add go-github-com-coreos-go-systemd-journal., guix-commits, 2024/02/14
- 03/08: gnu: Add go-github-com-coreos-go-systemd-dbus., guix-commits, 2024/02/14
- 07/08: gnu: Add go-github-com-coreos-go-systemd-unit., guix-commits, 2024/02/14
- 06/08: gnu: Add go-github-com-coreos-go-systemd-machine1., guix-commits, 2024/02/14