GNU bug report logs - #70255
[PATCH 0/4] gnu: Add go-github-com-ipfs-go-cid.

Previous Next

Package: guix-patches;

Reported by: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>

Date: Sun, 7 Apr 2024 10:01:04 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

To reply to this bug, email your comments to 70255 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#70255; Package guix-patches. (Sun, 07 Apr 2024 10:01:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 07 Apr 2024 10:01:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>
Subject: [PATCH 0/4] gnu: Add go-github-com-ipfs-go-cid.
Date: Sun,  7 Apr 2024 12:59:47 +0300
This patch series adds "go-github-com-ipfs-go-cid" package that is required
for the newer versions of Kubo (IPFS.)

Artyom V. Poptsov (4):
  gnu: Add specification-multihash.
  gnu: Add specification-multicodec.
  gnu: Add go-github-com-multiformats-go-multihash-0.2.3.
  gnu: Add go-github-com-ipfs-go-cid.

 gnu/packages/golang-crypto.scm  | 48 +++++++++++++++++++++++++++-
 gnu/packages/ipfs.scm           | 36 +++++++++++++++++++++
 gnu/packages/specifications.scm | 56 +++++++++++++++++++++++++++++++++
 3 files changed, 139 insertions(+), 1 deletion(-)


base-commit: eaccfececd0eec362b247efd47861e2118dd9dd8
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#70255; Package guix-patches. (Sun, 07 Apr 2024 10:03:03 GMT) Full text and rfc822 format available.

Message #8 received at 70255 <at> debbugs.gnu.org (full text, mbox):

From: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>
To: 70255 <at> debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>
Subject: [PATCH 1/4] gnu: Add specification-multihash.
Date: Sun,  7 Apr 2024 13:01:42 +0300
* gnu/packages/specifications.scm (specification-multihash): New variable.

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

diff --git a/gnu/packages/specifications.scm b/gnu/packages/specifications.scm
index ce57a68bdb..b44f0eaaee 100644
--- a/gnu/packages/specifications.scm
+++ b/gnu/packages/specifications.scm
@@ -51,3 +51,31 @@ (define-public specification-multibase
 base-encoded (e.g., @code{base32}, @code{base36}, @code{base64}, @code{base58}, etc.)
 binary appearing in text.")
       (license (list license:expat license:cc-by-sa3.0)))))
+
+(define-public specification-multihash
+  (let ((commit "931febb97565395b1b6cd39ac677799df265a9e7")
+        (revision "0"))
+    (package
+      (name "specification-multihash")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/multiformats/multihash")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1axr35z3iz061fng0170bh873vy20rj2mspznycxm1qkrkrh7p5j"))))
+      (build-system copy-build-system)
+      (arguments
+       '(#:install-plan '(("." "share/multihash/"))
+         #:phases (modify-phases %standard-phases
+                    (delete 'strip))))
+      (home-page "https://github.com/multiformats/multihash")
+      (synopsis "Self-describing hashes")
+      (description
+       "Multihash is a protocol for differentiating outputs from various
+well-established cryptographic hash functions, addressing size + encoding
+considerations.")
+      (license (list license:expat license:cc-by-sa3.0)))))
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#70255; Package guix-patches. (Sun, 07 Apr 2024 10:03:05 GMT) Full text and rfc822 format available.

Message #11 received at 70255 <at> debbugs.gnu.org (full text, mbox):

From: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>
To: 70255 <at> debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>
Subject: [PATCH 2/4] gnu: Add specification-multicodec.
Date: Sun,  7 Apr 2024 13:01:43 +0300
* gnu/packages/specifications.scm (specification-multicodec): New variable.

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

diff --git a/gnu/packages/specifications.scm b/gnu/packages/specifications.scm
index b44f0eaaee..125d794932 100644
--- a/gnu/packages/specifications.scm
+++ b/gnu/packages/specifications.scm
@@ -52,6 +52,34 @@ (define-public specification-multibase
 binary appearing in text.")
       (license (list license:expat license:cc-by-sa3.0)))))
 
+(define-public specification-multicodec
+  (let ((commit "36789e0856be22fa02f4dc55582ec670b2b4318b")
+        (revision "0"))
+    (package
+      (name "specification-multicodec")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/multiformats/multicodec")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0dyawicg8q4f8g6xj5bsj5l3c8rb8mrafjkrabc6a3p65845wp2r"))))
+      (build-system copy-build-system)
+      (arguments
+       '(#:install-plan '(("." "share/multicodec/"))
+         #:phases (modify-phases %standard-phases
+                    (delete 'strip))))
+      (home-page "https://github.com/multiformats/multicodec")
+      (synopsis "Compact self-describing codecs")
+      (description
+       "Multicodec is an agreed-upon codec table.  It is designed for use in binary
+representations, such as keys or identifiers (i.e @url{https://github.com/ipld/cid,
+CID}).")
+      (license (list license:expat license:cc-by-sa3.0)))))
+
 (define-public specification-multihash
   (let ((commit "931febb97565395b1b6cd39ac677799df265a9e7")
         (revision "0"))
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#70255; Package guix-patches. (Sun, 07 Apr 2024 10:03:05 GMT) Full text and rfc822 format available.

Message #14 received at 70255 <at> debbugs.gnu.org (full text, mbox):

From: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>
To: 70255 <at> debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>
Subject: [PATCH 3/4] gnu: Add go-github-com-multiformats-go-multihash-0.2.3.
Date: Sun,  7 Apr 2024 13:01:44 +0300
* gnu/packages/golang-crypto.scm:
  (go-github-com-multiformats-go-multihash-0.2.3): New variable.

Change-Id: I6ac1d5a5f96d01fa40c588e720c4b1c3b99a91a7
---
 gnu/packages/golang-crypto.scm | 48 +++++++++++++++++++++++++++++++++-
 1 file changed, 47 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 3b95965f6b..d741a48667 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -48,7 +48,9 @@ (define-module (gnu packages golang-crypto)
   #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-check)
   #:use-module (gnu packages golang-compression)
-  #:use-module (gnu packages golang-web))
+  #:use-module (gnu packages golang-web)
+  #:use-module (gnu packages golang-xyz)
+  #:use-module (gnu packages specifications))
 
 ;;; Commentary:
 ;;;
@@ -818,6 +820,50 @@ (define-public go-github-com-multiformats-go-multihash
       (description "Multihash implementation in Go.")
       (license license:expat))))
 
+(define-public go-github-com-multiformats-go-multihash-0.2.3
+  (package
+    (inherit go-github-com-multiformats-go-multihash)
+    (name "go-github-com-multiformats-go-multihash")
+    (version "0.2.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/multiformats/go-multihash")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0ydh94083888xl2r4d1grzgqf3c818mkmdpj008jkh6h7m56wc4w"))))
+    (arguments
+     (list #:go go-1.21
+           #:import-path "github.com/multiformats/go-multihash"
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'copy-multibase-specs
+                 (lambda* (#:key import-path #:allow-other-keys)
+                   (copy-recursively
+                    (string-append #$(this-package-native-input
+                                      "specification-multihash")
+                                   "/share/multihash/")
+                    (string-append "src/" import-path "/spec/multihash/"))
+                   (copy-recursively
+                    (string-append #$(this-package-native-input
+                                      "specification-multicodec")
+                                   "/share/multicodec/")
+                    (string-append "src/" import-path "/spec/multicodec/")))))))
+    (native-inputs
+     (list specification-multihash
+           specification-multicodec))
+    (propagated-inputs
+     (list go-github-com-gxed-hashland-keccakpg
+           go-github-com-minio-blake2b-simd
+           go-github-com-minio-sha256-simd
+           go-github-com-mr-tron-base58
+           go-github-com-multiformats-go-varint
+           go-github-com-spaolacci-murmur3
+           go-golang-org-x-crypto
+           go-lukechampine-com-blake3))))
+
 (define-public go-github-com-operatorfoundation-ed25519
   (let ((commit "b22b4bd3ddef042eec45f3ee135cd40281fde2b4")
         (revision "0"))
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#70255; Package guix-patches. (Sun, 07 Apr 2024 10:03:06 GMT) Full text and rfc822 format available.

Message #17 received at 70255 <at> debbugs.gnu.org (full text, mbox):

From: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>
To: 70255 <at> debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>
Subject: [PATCH 4/4] gnu: Add go-github-com-ipfs-go-cid.
Date: Sun,  7 Apr 2024 13:01:45 +0300
* gnu/packages/ipfs.scm (go-github-com-ipfs-go-cid): New variable.

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

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 0a1065535b..33c25d1ff4 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -39,6 +39,42 @@ (define-module (gnu packages ipfs)
   #:use-module (gnu packages shells)
   #:use-module (gnu packages syncthing))
 
+(define-public go-github-com-ipfs-go-cid
+  (package
+    (name "go-github-com-ipfs-go-cid")
+    (version "0.4.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ipfs/go-cid")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0gfd5dg0shj2daraai2kkf8sg24jp5cr6dsv857wp4q1ni612a23"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "github.com/ipfs/go-cid"))
+    (propagated-inputs (list go-github-com-gxed-hashland-keccakpg
+                             go-github-com-minio-blake2b-simd
+                             go-github-com-minio-sha256-simd
+                             go-github-com-mr-tron-base58
+                             go-github-com-multiformats-go-base32
+                             go-github-com-multiformats-go-base36
+                             go-github-com-multiformats-go-multihash-0.2.3
+                             go-github-com-multiformats-go-multibase
+                             go-github-com-multiformats-go-varint
+                             go-github-com-spaolacci-murmur3
+                             go-golang-org-x-crypto))
+    (home-page "https://github.com/ipfs/go-cid")
+    (synopsis "Content ID v1 implemented in Go")
+    (description
+     "Implementation in Go of the @url{https://github.com/ipld/cid, CID spec}.  It is
+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-ipfs-cmdkit-files
   (let ((commit
           "386fcf8f18a185ec121676665fe2d9574496048d")
-- 
2.41.0





Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Fri, 12 Apr 2024 16:09:02 GMT) Full text and rfc822 format available.

Notification sent to "Artyom V. Poptsov" <poptsov.artyom <at> gmail.com>:
bug acknowledged by developer. (Fri, 12 Apr 2024 16:09:03 GMT) Full text and rfc822 format available.

Message #22 received at 70255-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 70255-done <at> debbugs.gnu.org
Subject: [PATCH 0/4] gnu: Add go-github-com-ipfs-go-cid.
Date: Fri, 12 Apr 2024 17:08:35 +0100
[Message part 1 (text/plain, inline)]
Hi,

Thank you for the patches.

Pushed as e74b591091..4d7a2c860e to master.

--
Oleg
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.