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
This commit is contained in:
Sharlatan Hellseher 2024-07-25 19:08:58 +01:00
parent b167bab9a1
commit a56bb2142a
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -355,8 +355,36 @@ (define-public go-github-com-bwesterb-go-ristretto
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 @@ (define-public go-github-com-cespare-xxhash-v2
(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 @@ (define-public go-github-com-cespare-xxhash-v2
;; 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")