diff options
author | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2024-04-07 13:01:44 +0300 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-04-12 16:58:42 +0100 |
commit | 352e649ac2094844b17e96fe15602815062acf58 (patch) | |
tree | 1ca177f9aa8dc568a4a904dd6ecdd339eb845e27 | |
parent | 4d7a2c860eb000fe12c93f62a7467b4e5eec58ff (diff) | |
download | guix-352e649ac2094844b17e96fe15602815062acf58.tar.gz guix-352e649ac2094844b17e96fe15602815062acf58.zip |
gnu: Add go-github-com-multiformats-go-multihash-0.2.3.
* gnu/packages/golang-crypto.scm:
(go-github-com-multiformats-go-multihash-0.2.3): New variable.
Change-Id: I6ac1d5a5f96d01fa40c588e720c4b1c3b99a91a7
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r-- | gnu/packages/golang-crypto.scm | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 104b787b0a..ca35d5c391 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -48,7 +48,9 @@ #: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: ;;; @@ -864,6 +866,51 @@ Architecture Processors\" by J. Guilford et al.") (description "Multihash implementation in Go.") (license license:expat))) +;; XXX: Remove it when all dependent packages are ready to be updated. +(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")) |