Subject: [bug#70631] [PATCH 5/6] gnu: Add go-github-com-ipfs-go-cidutil.

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

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

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

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 96802c0c57..faf390d19c 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -68,6 +68,36 @@ (define-public go-github-com-ipfs-go-cid
 used in @code{go-ipfs} and related packages to refer to a typed hunk of data.")
     (license license:expat)))
 
+(define-public go-github-com-ipfs-go-cidutil
+  (package
+    (name "go-github-com-ipfs-go-cidutil")
+    (version "0.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ipfs/go-cidutil")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0j18wf42rfxrrh2fjdbjsjvjqxwgvg46b9wl6y5ig22fx5hvpm1n"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "github.com/ipfs/go-cidutil"))
+    (propagated-inputs
+     (list go-github-com-ipfs-go-cid
+           go-github-com-multiformats-go-multibase
+           go-github-com-multiformats-go-multicodec
+           go-github-com-multiformats-go-multihash))
+    (home-page "https://github.com/ipfs/go-cidutil")
+    (synopsis "Utility functions and types for working with CIDs")
+    (description
+     "@code{go-cidutil} implements various utilities and helper functions for working
+with @url{https://github.com/ipld/cid, CIDs}.")
+    (license license:expat)))
+
 (define-public go-github-com-ipfs-go-ipfs-cmdkit-files
   (let ((commit
           "386fcf8f18a185ec121676665fe2d9574496048d")
-- 
2.41.0