summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorPatrick Norton <patrick.147.norton@gmail.com>2026-01-04 10:03:54 -0500
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-05-14 13:32:51 +0100
commitbb0096af80adbd1750776acf063ba35ba4dc5cee (patch)
treea015c07241824d50ff4ccb6feb860da9805686e5 /gnu
parentebe656f7fa4d42b823cb06f60b8dfb6f7618a812 (diff)
gnu: Add go-github-com-creachadair-taskgroup.
* gnu/packages/golang-xyz.scm (go-github-com-creachadair-taskgroup): New variable. Change-Id: I25170ed6542ab77e1a05a054fea9f7c5230864b0 Relates-to: https://codeberg.org/guix/guix/pulls/5417 Edited-by: Johannes Christ <jc@jchri.st> Reviewed-by: Johannes Christ <jc@jchri.st> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-xyz.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index d88a3d2bf6..0a6d6c7afd 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7470,6 +7470,40 @@ goroutines and @code{trigger}, that implements channel-based condition
variable.")
(license license:bsd-3)))
+(define-public go-github-com-creachadair-taskgroup
+ (package
+ (name "go-github-com-creachadair-taskgroup")
+ (version "0.14.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/creachadair/taskgroup")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0cc9w5v1iw8gwqz9w6ydr4hlw5wf3r9d1xi75hz11zz8ry4qraj5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.25
+ #:import-path "github.com/creachadair/taskgroup"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ ;; See: <https://go.dev/blog/synctest>.
+ (setenv "GOEXPERIMENT" "synctest")
+ (setenv "GODEBUG" "asynctimerchan=0"))))))
+ (home-page "https://github.com/creachadair/taskgroup")
+ (synopsis "Manage a group of collaborating goroutines")
+ (description
+ "This package manages collections of cooperating goroutines. It defines
+a @code{Group} that handles waiting for goroutine termination and the
+propagation of error values. The caller may provide a callback to filter and
+respond to task errors.")
+ (license license:bsd-3)))
+
(define-public go-github-com-creack-pty
(package
(name "go-github-com-creack-pty")