sharlatan pushed a commit to branch go-team
in repository guix.
commit 2e8d9278e4acacde692355a145a8d6ebc8b8d9f7
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Feb 19 20:45:13 2025 +0000
gnu: Add go-github-com-gammazero-chanqueue.
* gnu/packages/golang-xyz.scm (go-github-com-gammazero-chanqueue): New
variable.
Change-Id: Id4952684410fe13a57db04d46ef9d160427def9c
---
gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index b16c08544e..b0449c7118 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3854,6 +3854,38 @@ submodules:
font files in your system's user and system font directories.")
(license license:expat)))
+(define-public go-github-com-gammazero-chanqueue
+ (package
+ (name "go-github-com-gammazero-chanqueue")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gammazero/chanqueue")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0kji9blaqbphzrdr9b09c1lfm4vzj94m2ygwganw62byqg4hwy26"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/gammazero/chanqueue"))
+ (native-inputs
+ (list go-go-uber-org-goleak))
+ (propagated-inputs
+ (list go-github-com-gammazero-deque))
+ (home-page "https://github.com/gammazero/chanqueue")
+ (synopsis "Buffered channel with unlimited capacity queue")
+ (description
+ "Package chanqueue implements a queue that uses channels for input and
+output to provide concurrent access to a re-sizable queue. This allows the
+queue to be used like a channel. Closing the input channel closes the output
+channel when all queued items are read, consistent with channel behavior. In
+other words chanqueue is a dynamically buffered channel with up to infinite
+capacity.")
+ (license license:expat)))
+
(define-public go-github-com-gammazero-deque
(package
(name "go-github-com-gammazero-deque")