From ac7ca705646e3e9f83d90d7bd7cd04e8039ae1db Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Fri, 5 Dec 2025 19:26:06 +0100 Subject: gnu: Add go-github-com-ysmood-goob. * gnu/packages/golang-xyz.scm (go-github-com-ysmood-goob): New variable. Change-Id: I1f3120c2375b246413daf1118b8c6f67c1a2d500 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-check.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 960fe13734..c7f942cdfd 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -2865,6 +2865,39 @@ gracefully enhance standard library testing package and behaviors of the @command{go test} command.") (license license:expat))) +(define-public go-github-com-ysmood-goob + (package + (name "go-github-com-ysmood-goob") + (version "0.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ysmood/goob") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1z4632i1mx9rxslq7b9jd4zg600wangxyirh99fxsv0i2jprak53")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ysmood/goob" + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + ;; Tests require GODEBUG="tracebackancestors=N" environment + ;; setting. + (setenv "GODEBUG" "tracebackancestors=1000")))))) + (native-inputs + (list go-github-com-ysmood-gotrace)) + (home-page "https://github.com/ysmood/goob") + (synopsis "Go observable pattern library") + (description + "Goob is a Go implementation of the observable pattern, providing a +simple way to create observable objects and subscribe to their changes.") + (license license:expat))) + (define-public go-github-com-ysmood-gotrace (package (name "go-github-com-ysmood-gotrace") -- cgit v1.3