sharlatan pushed a commit to branch go-team
in repository guix.

commit 422d22a06dacca3b09b7d0f73ab25d8899681ace
Author: Sharlatan Hellseher <sharlata...@gmail.com>
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 9982bae8fd..920db7d05e 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3855,6 +3855,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")

Reply via email to