Subject: [bug#72129] [PATCH 3/4] gnu: Add go-github-com-ipld-go-codec-dagpb.

From: "Artyom V. Poptsov" <[email-masked]>
Date: Mon, 15 Jul 2024 23:04:22 +0300

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

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

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 22fbce25b6..ab6b907653 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -403,6 +403,34 @@ (define-public go-github-com-ipfs-go-ipld-legacy
 and @code{go-ipld-format} legacy interface.")
     (license (list license:expat license:asl2.0))))
 
+(define-public go-github-com-ipld-go-codec-dagpb
+  (package
+    (name "go-github-com-ipld-go-codec-dagpb")
+    (version "1.6.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ipld/go-codec-dagpb")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1jbrwbgr222wsi95gdflbj350csja6k8vphdq7c9bm50ipr8bvkq"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "github.com/ipld/go-codec-dagpb"))
+    (propagated-inputs (list go-github-com-ipfs-go-cid
+                             go-github-com-ipld-go-ipld-prime
+                             go-google-golang-org-protobuf))
+    (home-page "https://github.com/ipld/go-codec-dagpb/")
+    (synopsis "Implementation of the DAG-PB spec for Go")
+    (description
+     "An implementation of the @url{https://ipld.io/, IPLD DAG-PB} spec for
+@code{go-ipld-prime}.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public go-github-com-ipld-go-ipld-prime
   (package
     (name "go-github-com-ipld-go-ipld-prime")
-- 
2.45.2