unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: 71636@debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Subject: [bug#71636] [PATCH 3/4] gnu: Add go-github-com-ipld-go-ipld-prime.
Date: Tue, 18 Jun 2024 22:43:44 +0300	[thread overview]
Message-ID: <6350b37fd255d6d6aff1123b73e1830e6231eb1a.1718739586.git.poptsov.artyom@gmail.com> (raw)
In-Reply-To: <cover.1718739586.git.poptsov.artyom@gmail.com>

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

Change-Id: Icbf768341fda23154b82f10e3701ce435c9ec6e9
---
 gnu/packages/ipfs.scm | 51 ++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 50 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 7fb50452b6..b487062672 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -37,7 +37,8 @@ (define-module (gnu packages ipfs)
   #:use-module (gnu packages golang-web)
   #:use-module (gnu packages golang-xyz)
   #:use-module (gnu packages python)
-  #:use-module (gnu packages shells))
+  #:use-module (gnu packages shells)
+  #:use-module (gnu packages specifications))
 
 (define-public go-github-com-ipfs-go-block-format
   (package
@@ -298,6 +299,54 @@ (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-ipld-go-ipld-prime
+  (package
+    (name "go-github-com-ipld-go-ipld-prime")
+    (version "0.21.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ipld/go-ipld-prime")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1ycb08h0hvq3mw3sbjkjzp5sfcxmss155jxiv5gjg7myxvzk91ja"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.21
+      #:unpack-path "github.com/ipld/go-ipld-prime/"
+      #:import-path "github.com/ipld/go-ipld-prime/"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'copy-ipld-specfs
+            (lambda* (#:key import-path #:allow-other-keys)
+              (copy-recursively
+               (string-append #$(this-package-native-input
+                                 "specification-ipld")
+                              "/share/ipld/")
+               (string-append "src/" import-path "/ipld")))))))
+    (native-inputs
+     (list go-github-com-frankban-quicktest
+           go-github-com-warpfork-go-testmark
+           specification-ipld))
+    (propagated-inputs
+     (list go-github-com-google-go-cmp-cmp
+           go-github-com-multiformats-go-multicodec
+           go-github-com-multiformats-go-multihash
+           go-github-com-ipfs-go-block-format
+           go-github-com-ipfs-go-cid
+           go-github-com-polydawn-refmt
+           go-gopkg-in-yaml-v2))
+    (home-page "https://github.com/ipld/go-ipld-prime")
+    (synopsis "Golang interfaces for the IPLD Data Model")
+    (description
+     "@code{go-ipld-prime} is an implementation of the IPLD spec interfaces, a
+batteries-included codec implementations of IPLD for CBOR and JSON, and tooling for
+basic operations on IPLD objects (traversals, etc).")
+    (license license:expat)))
+
 (define-public go-github-com-ipfs-go-ipfs-api
   (let ((commit
           "dafc2a13a4389ac1a6c2786e34ab70a4f26d3a3f")
-- 
2.45.1





  parent reply	other threads:[~2024-06-18 19:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-18 19:41 [bug#71636] [PATCH 0/4] gnu: kubo: Unbundle more inputs Artyom V. Poptsov
2024-06-18 19:43 ` [bug#71636] [PATCH 1/4] gnu: Add go-github-com-polydawn-refmt Artyom V. Poptsov
2024-06-18 19:43 ` [bug#71636] [PATCH 2/4] gnu: Add go-github-com-warpfork-go-testmark Artyom V. Poptsov
2024-06-18 19:43 ` Artyom V. Poptsov [this message]
2024-06-18 19:43 ` [bug#71636] [PATCH 4/4] gnu: kubo: Unbundle more inputs Artyom V. Poptsov
2024-06-19 14:20 ` bug#71636: [PATCH 0/4] " Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6350b37fd255d6d6aff1123b73e1830e6231eb1a.1718739586.git.poptsov.artyom@gmail.com \
    --to=poptsov.artyom@gmail.com \
    --cc=71636@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).