diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-07-25 19:08:58 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-07-25 21:01:02 +0100 |
commit | a56bb2142ae61b6f60aa21091aa9bca939fa431e (patch) | |
tree | f34bf4bd98120c000848a14be894823e612dea2f /gnu/packages | |
parent | b167bab9a1040fad0477c4bffc728e5b36837fd5 (diff) | |
download | guix-a56bb2142ae61b6f60aa21091aa9bca939fa431e.tar guix-a56bb2142ae61b6f60aa21091aa9bca939fa431e.tar.gz |
gnu: Add go-github-com-cespare-xxhash.
* gnu/packages/golang-crypto.scm (go-github-com-cespare-xxhash): New
variable.
(go-github-com-cespare-xxhash-v2): Inherit from
go-github-com-cespare-xxhash.
Change-Id: I2fd831ecd91729a87bbe204dda42841cb05abb69
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/golang-crypto.scm | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 8783c19443..cb760227e8 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -355,8 +355,36 @@ needing to use secp256k1 elliptic curve cryptography.") the Ristretto prime-order group built from Edwards25519.") (license license:expat))) +(define-public go-github-com-cespare-xxhash + (package + (name "go-github-com-cespare-xxhash") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cespare/xxhash") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1qyzlcdcayavfazvi03izx83fvip8h36kis44zr2sg7xf6sx6l4x")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cespare/xxhash")) + (propagated-inputs + (list go-github-com-spaolacci-murmur3 + go-github-com-oneofone-xxhash)) + (home-page "https://github.com/cespare/xxhash") + (synopsis "Go implementation of xxHash") + (description + "Package xxhash implements the 64-bit variant of @code{xxHash} (XXH64) as +described at @url{https://xxhash.com/}.") + (license license:expat))) + (define-public go-github-com-cespare-xxhash-v2 (package + (inherit go-github-com-cespare-xxhash) (name "go-github-com-cespare-xxhash-v2") (version "2.1.2") (source @@ -370,7 +398,6 @@ the Ristretto prime-order group built from Edwards25519.") (base32 "1f3wyr9msnnz94szrkmnfps9wm40s5sp9i4ak0kl92zcrkmpy29a")) (modules '((guix build utils))) (snippet '(delete-file-recursively "xxhashbench")))) - (build-system go-build-system) (arguments (list #:import-path "github.com/cespare/xxhash/v2" @@ -382,11 +409,7 @@ the Ristretto prime-order group built from Edwards25519.") ;; The tests fail when run with gccgo. (false-if-exception (search-input-file inputs "/bin/gccgo")) (apply (assoc-ref %standard-phases 'check) args))))))) - (home-page "https://github.com/cespare/xxhash/") - (synopsis "Go implementation of xxHash") - (description "This package provides of Go implementation of the 64-bit -xxHash algorithm (XXH64).") - (license license:expat))) + (propagated-inputs '()))) (define-public go-github-com-chmduquesne-rollinghash (let ((commit "9a5199be7309f50c496efc87d29bd08788605ae7") |