Subject: [bug#70631] [PATCH 3/6] gnu: Add go-github-com-ipfs-go-log-v2.

From: "Artyom V. Poptsov" <[email-masked]>
Date: Sun, 28 Apr 2024 19:45:11 +0300

* gnu/packages/ipfs.scm (go-github-com-ipfs-go-log-v2): New variable.

Change-Id: Id6d85bfa883670345420c21937681ae2844f6263
---
 gnu/packages/ipfs.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index d8ddd5bb52..905cda71e9 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -194,6 +194,36 @@ (define-public go-github-com-ipfs-go-ipfs-api
       (description "An unofficial Go interface to IPFS's HTTP API")
       (license license:expat))))
 
+(define-public go-github-com-ipfs-go-log-v2
+  (package
+    (name "go-github-com-ipfs-go-log-v2")
+    (version "2.5.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ipfs/go-log")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1yh3sw8knpy364h8h8rqw193whnjd6fbc13cxh6zs29z3x2a7aqa"))))
+    (build-system go-build-system)
+    (propagated-inputs (list go-github-com-mattn-go-isatty
+                             go-go-uber-org-multierr
+                             go-go-uber-org-zap))
+    (arguments
+     (list
+      #:go go-1.21
+      #:unpack-path "github.com/ipfs/go-log/v2"
+      #:import-path "github.com/ipfs/go-log/v2"))
+    (home-page "https://github.com/ipfs/go-log")
+    (synopsis "Logging library used by @code{go-ipfs}")
+    (description
+     "@code{go-log} wraps @url{https://github.com/uber-go/zap, zap} to
+provide a logging facade.  @code{go-log} manages logging instances and allows for
+their levels to be controlled individually.")
+    (license license:expat)))
+
 (define-public gx
   (package
     (name "gx")
-- 
2.41.0