summaryrefslogtreecommitdiff
path: root/gnu/packages/golang-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-12-12 23:51:15 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-01-21 23:41:55 +0000
commit5edee68e4945dc42ae06c599ee741835eea809d2 (patch)
tree2f515fcf355b3236fdf85d8f60b6ee7bb0468f83 /gnu/packages/golang-xyz.scm
parent93517366b1a4de5ed2ff14fb0f7690fbd2458f39 (diff)
gnu: go-github-com-sirupsen-logrus: Move to golang-xyz.
* gnu/packages/golang.scm (go-github-com-sirupsen-logrus): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/docker.scm: Add golang-xyz module. Change-Id: I31851e4ea52e7ad1f69ff6ec32f53f00bff6b105
Diffstat (limited to 'gnu/packages/golang-xyz.scm')
-rw-r--r--gnu/packages/golang-xyz.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 856c3415ea..b3c2e05de1 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7948,6 +7948,44 @@ sensors).")
;; environment.
(string-append "src/" import-path "/host/host_test.go")))))))))
+(define-public go-github-com-sirupsen-logrus
+ (package
+ (name "go-github-com-sirupsen-logrus")
+ (version "1.9.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sirupsen/logrus")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1jz7nyq88i9fwfpp7krl046q62kjn6lb9j4r932bxnpypl1hwc49"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/sirupsen/logrus"
+ #:test-flags #~(list "-skip" "TestNestedLoggingReportsCorrectCaller")
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs #:allow-other-keys #:rest args)
+ (unless
+ ;; The tests fail when run with gccgo.
+ (false-if-exception (search-input-file inputs "/bin/gccgo"))
+ (apply (assoc-ref %standard-phases 'check) args)))))))
+ (propagated-inputs
+ (list go-github-com-davecgh-go-spew
+ go-github-com-pmezard-go-difflib
+ go-github-com-stretchr-testify
+ go-golang-org-x-crypto
+ go-golang-org-x-sys))
+ (home-page "https://github.com/sirupsen/logrus")
+ (synopsis "Structured, pluggable logging for Go")
+ (description "Logrus is a structured logger for Go, completely API
+compatible with the standard library logger.")
+ (license license:expat)))
+
(define-public go-github-com-skip2-go-qrcode
(package
(name "go-github-com-skip2-go-qrcode")