me
/
guix
Archived
1
0
Fork 0

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>
master
Artyom V. Poptsov 2024-04-07 13:01:44 +03:00 committed by Sharlatan Hellseher
parent 4d7a2c860e
commit 352e649ac2
No known key found for this signature in database
GPG Key ID: 76D727BFF62CD2B5
1 changed files with 48 additions and 1 deletions

View File

@ -48,7 +48,9 @@
#:use-module (gnu packages golang-build) #:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check) #:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-compression) #: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: ;;; Commentary:
;;; ;;;
@ -864,6 +866,51 @@ Architecture Processors\" by J. Guilford et al.")
(description "Multihash implementation in Go.") (description "Multihash implementation in Go.")
(license license:expat))) (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 (define-public go-github-com-operatorfoundation-ed25519
(let ((commit "b22b4bd3ddef042eec45f3ee135cd40281fde2b4") (let ((commit "b22b4bd3ddef042eec45f3ee135cd40281fde2b4")
(revision "0")) (revision "0"))