From aeef63fd4e932ced126b32d9535aa6d8c5752050 Mon Sep 17 00:00:00 2001 From: Ashvith Shetty Date: Tue, 15 Apr 2025 23:52:03 +0530 Subject: gnu: Add go-github-com-axiomhq-hyperloglog. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/golang-xyz.scm (go-github-com-axiomhq-hyperloglog): New variable. Change-Id: Ied56075c3483a1a14f6cb8df7c04fd9ab48bb742 Signed-off-by: Ludovic Courtès --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a839f2f168c..670fc778cfb 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1822,6 +1822,38 @@ strategies, such as fixed delay, backoff delay, and random delay.") (delete-file-recursively (string-append "src/" import-path "/examples"))))))))) +(define-public go-github-com-axiomhq-hyperloglog + (package + (name "go-github-com-axiomhq-hyperloglog") + (version "0.2.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/axiomhq/hyperloglog") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1a37q1prgpp80a93yx7zxhcam8fznzxvfvz6likfixz0ans2lbav")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:import-path "github.com/axiomhq/hyperloglog")) + (propagated-inputs (list go-github-com-stretchr-testify + go-github-com-kamstrup-intmap + go-github-com-dgryski-go-metro + go-github-com-davecgh-go-spew)) + (home-page "https://github.com/axiomhq/hyperloglog") + (synopsis "Algorithm for approximating the number of distinct elements") + (description + "HyperLogLog is an improved version of +@url{https://en.wikipedia.org/wiki/HyperLogLog,HyperLogLog} for the +count-distinct problem, approximating the number of distinct elements in a +multiset. This implementation offers enhanced performance, flexibility, and +simplicity while maintaining accuracy.") + (license license:expat))) + (define-public go-github-com-aymanbagabas-go-osc52-v2 (package (name "go-github-com-aymanbagabas-go-osc52-v2") -- cgit v1.3