guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 05d02af60e8aa0a0283a71d8f84b6b5869cbdee6
Author: Arun Isaac <[email protected]>
AuthorDate: Sun Feb 8 20:06:58 2026 +0000
gnu: Add go-github-com-blevesearch-go-metrics.
* gnu/packages/golang-web.scm (go-github-com-blevesearch-go-metrics): New
variable.
Change-Id: Iced771cc9a0c949ce49c1251d5082aa34fa6462d
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/golang-web.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 15f40c9c24..3393e53e6c 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -48,6 +48,7 @@
;;; Copyright © 2025 Patrick Norton <[email protected]>
;;; Copyright © 2025 Jared Klingenberger <[email protected]>
;;; Copyright © 2026 Carlos Durán Domínguez <[email protected]>
+;;; Copyright © 2026 Arun Isaac <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2677,6 +2678,53 @@ capable of querying the current time from a remote NTP
server as specified in
"This package provides SCSS compiler support for Go applications.")
(license license:expat)))
+(define-public go-github-com-blevesearch-go-metrics
+ (package
+ (name "go-github-com-blevesearch-go-metrics")
+ (version "0.0.0-20201227073835-cf1acfcdf475")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/blevesearch/go-metrics")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0s7zab04slz07c7l4h2cqz62qnqah69r6p157vvbd7725a7wzkr0"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; github.com/blevesearch/go-metrics was forked from
+ ;; github.com/rcrowley/go-metrics, but it seems rcrowley was
+ ;; not replaced everywhere consistently. Fix this.
+ (substitute* (find-files "." "\\.go$")
+ (("github.com/rcrowley/go-metrics")
+ "github.com/blevesearch/go-metrics"))))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/blevesearch/go-metrics"
+ #:test-flags
+ ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le
+ ;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249
+ #~(list #$@(if (or (target-aarch64?) (target-ppc64le?))
+ '("-skip" (string-join
+ (list "TestEWMA1"
+ "TestEWMA5"
+ "TestUniformSampleSnapshot"
+ "TestUniformSampleStatistics")
+ "|"))
+ '())
+ "-vet=off")))
+ (propagated-inputs
+ (list go-github-com-stathat-go))
+ (home-page "https://github.com/blevesearch/go-metrics")
+ (synopsis "Go port of Coda Hale's Metrics library")
+ (description
+ "This package provides a Go implementation of Coda Hale's Metrics
+library. It's an alternative fork of https://github.com/rcrowley/go-metrics.")
+ (license license:bsd-2)))
+
(define-public go-github-com-bradenhilton-mozillainstallhash
(package
(name "go-github-com-bradenhilton-mozillainstallhash")