From de8a33ab550a5bc8f1cbb6f898c5d33c0c72d0fa Mon Sep 17 00:00:00 2001 From: IliaLuetin Date: Mon, 27 Oct 2025 14:38:33 +0100 Subject: [PATCH] gnu: Add go-github-com-zeebo-xxh3. * gnu/packages/golang-crypto.scm (go-github-com-zeebo-xxh3): New variable. Change-Id: I93523d826d65cd4c01e751328a48d131f7858cd4 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-crypto.scm | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index ce93686cc1..0548fc2b06 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -2937,6 +2937,42 @@ vectorized version of BLAKE3 implementation in Golang.") Congruential Generator} (PCG) algorithm.") (license license:cc0))) +(define-public go-github-com-zeebo-xxh3 + (package + (name "go-github-com-zeebo-xxh3") + (version "1.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zeebo/xxh3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gy666r5v1d1n2cfig9plhyp7z09f06k6mr5lrf0mk6psk6bnwgi")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/zeebo/xxh3/avo + ;; - github.com/zeebo/xxh3/internal/compare + (delete-file-recursively "avo") + (delete-file-recursively "internal/compare"))))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/zeebo/xxh3")) + (native-inputs + (list go-github-com-zeebo-assert)) + (propagated-inputs + (list go-github-com-klauspost-cpuid-v2)) + (home-page "https://github.com/zeebo/xxh3") + (synopsis "XXH3 hash algorithm in Golang") + (description + "This package provides a port of the XXH3 hash algorithm to Golang. XXH3 +is an extremely fast non-cryptographic hash algorithm.") + (license license:bsd-2))) + (define-public go-gitlab-com-nyarla-go-crypt (package (name "go-gitlab-com-nyarla-go-crypt")