~ruther/guix-local

de8a33ab550a5bc8f1cbb6f898c5d33c0c72d0fa — IliaLuetin 5 months ago 94f36b3
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 <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 36 insertions(+), 0 deletions(-)

M gnu/packages/golang-crypto.scm
M gnu/packages/golang-crypto.scm => gnu/packages/golang-crypto.scm +36 -0
@@ 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")