Subject: [bug#72129] [PATCH 1/4] gnu: Add go-github-com-ipfs-go-ipld-legacy.

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

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

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

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index daf68903c2..e57399d6d9 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -373,6 +373,36 @@ (define-public go-github-com-ipfs-go-ipld-format
 order to be a part of the @acronym{IPLD, InterPlanetary Linked Data} merkle-forest.")
     (license license:expat)))
 
+(define-public go-github-com-ipfs-go-ipld-legacy
+  (package
+    (name "go-github-com-ipfs-go-ipld-legacy")
+    (version "0.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ipfs/go-ipld-legacy")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0sc2zc3lyxy30fzynwdpfrl8jhh1ynwixn1crrv8hzn93yix6550"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "github.com/ipfs/go-ipld-legacy"))
+    (native-inputs (list go-github-com-stretchr-testify))
+    (propagated-inputs (list go-github-com-ipfs-go-block-format
+                             go-github-com-ipfs-go-cid
+                             go-github-com-ipfs-go-ipld-format
+                             go-github-com-ipld-go-ipld-prime))
+    (home-page "https://github.com/ipfs/go-ipld-legacy")
+    (synopsis "Translation layer for IPLD legacy code")
+    (description
+     "@code{go-ipld-format} is a translation layer between @code{go-ipld-prime} nodes
+and @code{go-ipld-format} legacy interface.")
+    (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