Subject: [bug#72211] [PATCH 1/7] gnu: Add go-github-com-ipfs-go-ipfs-blocksutil.

From: "Artyom V. Poptsov" <[email-masked]>
Date: Sat, 20 Jul 2024 18:33:50 +0300

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

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

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 82d8914250..01b020a14c 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -72,6 +72,35 @@ (define-public go-github-com-ipfs-go-block-format
 corresponding to the block.")
     (license license:expat)))
 
+(define-public go-github-com-ipfs-go-ipfs-blocksutil
+  ;; Use the latest commit from the "master" branch to fix the build with go-1.21.
+  (let ((commit "ce0497f5ee55c479db98905aec8ff56c27aad2a2")
+        (revision "0"))
+    (package
+      (name "go-github-com-ipfs-go-ipfs-blocksutil")
+      (version (git-version "0.0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/ipfs/go-ipfs-blocksutil")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1ya6376wphp51rv48nmv4jw3x0mf6ym5yx1650fbkp5l5crqpdb8"))))
+      (build-system go-build-system)
+      (arguments
+       (list
+        #:go go-1.21
+        #:import-path "github.com/ipfs/go-ipfs-blocksutil"))
+      (propagated-inputs (list go-github-com-ipfs-go-block-format))
+      (home-page "https://github.com/ipfs/go-ipfs-blocksutil")
+      (synopsis "Utility functions for working with IPFS blocks")
+      (description
+       "Package @code{go-ipfs-blocksutil} provides provides utility functions for
+working with @url{https://github.com/ipfs/go-block-format, IPFS blocks}.")
+      (license license:expat))))
+
 (define-public go-github-com-ipfs-go-cid
   (package
     (name "go-github-com-ipfs-go-cid")
-- 
2.45.2