guix_mirror_bot pushed a commit to branch go-team
in repository guix.
commit 898bd706220071b4427e230058a772a94f24e475
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Feb 11 10:36:02 2026 +0000
gnu: Add go-github-com-mroth-weightedrand-v2.
* gnu/packages/golang-xyz.scm (go-github-com-mroth-weightedrand-v2): New
variable.
Change-Id: Ie6967ce89de25dc17ef57da5429391d04c42e201
---
gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 77887baea2..ce936fe4ec 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -17369,6 +17369,34 @@ command line flags, config files, and default struct
values.")
@url{https://github.com/judwhite/go-svc/raw/master/svc/svc_windows_test.go,here}.")
(license license:expat))))
+(define-public go-github-com-mroth-weightedrand-v2
+ (package
+ (name "go-github-com-mroth-weightedrand-v2")
+ (version "2.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mroth/weightedrand")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0g3d6lkdzfy041rd7v8pymjg03kdnnmcygag24x1ryx9lali5sxn"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/mroth/weightedrand/v2"))
+ (native-inputs
+ (list go-github-com-jmcvetta-randutil))
+ (home-page "https://github.com/mroth/weightedrand")
+ (synopsis "Weighted random selection for Go")
+ (description
+ "Package weightedrand contains a performant data structure and algorithm
+used to randomly select an element from some kind of list, where the chances
+of each element to be selected not being equal, but defined by relative
+\"weights\" (or probabilities). This is called weighted random selection.")
+ (license license:expat)))
+
(define-public go-github-com-mrunalp-fileutils
(package
(name "go-github-com-mrunalp-fileutils")