diff options
author | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2024-01-29 21:29:46 +0300 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-02-14 22:59:14 +0000 |
commit | 9ddb59f45291d38bb385fc513ccb2ebcbbb0c1cb (patch) | |
tree | 06faddce322a21abd9accb9957f35da64fcd67a8 | |
parent | 3aa92cc71f24b8a35fc77aaafdf9870313a0504e (diff) |
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>
-rw-r--r-- | gnu/packages/golang-xyz.scm | 25 |
1 files changed, 25 insertions, 0 deletions
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) |