~ruther/guix-local

69325e3bc94d3c12148c36e5ffb4678ffa5cecb2 — Arthur Rodrigues 6 months ago e3e840f
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 <sharlatanus@gmail.com>
1 files changed, 29 insertions(+), 0 deletions(-)

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