From 69325e3bc94d3c12148c36e5ffb4678ffa5cecb2 Mon Sep 17 00:00:00 2001 From: Arthur Rodrigues Date: Wed, 22 Oct 2025 19:19:22 +0000 Subject: [PATCH] gnu: Add go-github-com-serialx-hashring. * gnu/packages/golang-crypto.scm (go-github-com-serialx-hashring): New variable. Change-Id: If0d0c8201b0a11d76d5b83e458bff6fd30615eee Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-crypto.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 0548fc2b06b880963360b7cebb7dbfccac17b948..14b29a6520428ccbc1181b09b3ec0214033c5190 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -2396,6 +2396,35 @@ Boneh and Victor Shoup's cryptography book} (pg 789, PAKE2 protocol).") seed} Go's random number generator (if possible).") (license license:expat))) +(define-public go-github-com-serialx-hashring + (package + (name "go-github-com-serialx-hashring") + (version "0.0.0-20200727003509-22c0c7ab6b1b") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/serialx/hashring") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dbqc69z6hjqvvbbls97cizb3rixil67jq37fnjw2pkf0zhs9i4q")))) + (build-system go-build-system) + (arguments + (list + #:test-flags + #~(list "-vet=off") ;Go@1.24 forces vet, but tests are not ready yet. + #:import-path "github.com/serialx/hashring")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/serialx/hashring") + (synopsis "Consistent hashing for Golang") + (description + "This package implements consistent hashing that can be used when the + number of server nodes increase or decrease (like in memcached). The hashing +ring is built using the same algorithm as libketama.") + (license license:expat))) + (define-public go-github-com-shadowsocks-go-shadowsocks2 (package (name "go-github-com-shadowsocks-go-shadowsocks2")