mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
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>
This commit is contained in:
parent
3aa92cc71f
commit
9ddb59f452
1 changed files with 25 additions and 0 deletions
|
@ -33,6 +33,7 @@ (define-module (gnu packages golang-xyz)
|
|||
#: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 @@ (define-public go-github-com-coreos-go-systemd-machine1
|
|||
(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)
|
||||
|
|
Loading…
Reference in a new issue