[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70372] [PATCH 1/4] gnu: Add go-github-com-multiformats-go-multihash
From: |
Artyom V. Poptsov |
Subject: |
[bug#70372] [PATCH 1/4] gnu: Add go-github-com-multiformats-go-multihash-0.2.3. |
Date: |
Sun, 14 Apr 2024 09:33:39 +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 | 44 ++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index ca35d5c391..bc440812dd 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -911,6 +911,50 @@ (define-public
go-github-com-multiformats-go-multihash-0.2.3
go-golang-org-x-crypto
go-lukechampine-com-blake3))))
+(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
- [bug#70372] [PATCH 0/4] gnu: Add go-github-com-multiformats-go-multiaddr-dns., Artyom V. Poptsov, 2024/04/14
- [bug#70372] [PATCH 1/4] gnu: Add go-github-com-multiformats-go-multihash-0.2.3.,
Artyom V. Poptsov <=
- [bug#70372] [PATCH 2/4] gnu: Add go-golang-org-x-exp-2023., Artyom V. Poptsov, 2024/04/14
- [bug#70372] [PATCH 4/4] gnu: Add go-github-com-multiformats-go-multiaddr-dns., Artyom V. Poptsov, 2024/04/14
- [bug#70372] [PATCH 3/4] gnu: Add go-github-com-multiformats-go-multiaddr-0.12., Artyom V. Poptsov, 2024/04/14
- [bug#70372] [PATCH v2 0/3] gnu: Add go-github-com-multiformats-go-multiaddr-dns., Artyom V. Poptsov, 2024/04/19
- bug#70372: [PATCH 0/4] gnu: Add go-github-com-multiformats-go-multiaddr-dns., Sharlatan Hellseher, 2024/04/24