gnu: Add go-github-com-decred-dcrd-crypto-blake256.

* gnu/packages/golang-crypto.scm (go-github-com-decred-dcrd-crypto-blake256): New variable.

Change-Id: I497f3ef1015d3260f11711cebd1c64eda5df3ac5
This commit is contained in:
Sharlatan Hellseher 2024-09-07 15:50:00 +01:00
parent 1222fabbd1
commit e7d875d56d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -550,6 +550,50 @@ (define-public go-github-com-davidlazar-go-crypto
@end itemize")
(license license:expat)))
(define-public go-github-com-decred-dcrd-crypto-blake256
(package
(name "go-github-com-decred-dcrd-crypto-blake256")
(version "1.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/decred/dcrd")
(commit (go-version->git-ref
;; XXX: While waiting on consensus:
;; - https://issues.guix.gnu.org/52362
;; - https://issues.guix.gnu.org/63001
;; - https://issues.guix.gnu.org/63647
;; - https://issues.guix.gnu.org/69827
(string-append "crypto/blake256/v" version)))))
(file-name (git-file-name name version))
(sha256
(base32 "1mjzlyz2a3516g46kv421nacjd7p4g9l8ih4i7xijvsi480s5pja"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Submodules with their own go.mod files and packed as separated
;; packages.
(for-each
delete-file-recursively
(list "addrmgr" "bech32" "blockchain/standalone" "certgen"
"chaincfg/chainhash" "chaincfg" "connmgr" "container/lru"
"crypto/blake256/internal/_asm" "crypto/rand"
"crypto/ripemd160" "database" "dcrec/edwards" "dcrec" "dcrjson"
"dcrutil" "gcs" "hdkeychain" "math/uint256" "mixing" "peer"
"rpc/jsonrpc/types" "rpcclient" "txscript" "wire"))))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/decred/dcrd/crypto/blake256"
#:unpack-path "github.com/decred/dcrd"))
(home-page "https://github.com/decred/dcrd")
(synopsis "BLAKE-256/BLAKE-224 crypto hash functions implementation")
(description
"Package blake256 implements BLAKE-256 and BLAKE-224 with SSE2, SSE4.1,
and AVX acceleration and zero allocations.")
(license license:isc)))
(define-public go-github-com-dvsekhvalnov-jose2go
(package
(name "go-github-com-dvsekhvalnov-jose2go")