diff mbox series

[bug#54560,32/47] gnu: Add go-go-uber-org-goleak.

Message ID 20220325133211.5128-32-hello@lnikki.la
State New
Headers show
Series [bug#54560,01/47] gnu: Add go-google-golang-org-protobuf. | expand

Commit Message

Leo Nikkilä March 25, 2022, 1:31 p.m. UTC
* gnu/packages/golang.scm (go-go-uber-org-goleak): New variable.
---
 gnu/packages/golang.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index d16326e52c..70e2c454e4 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8881,6 +8881,29 @@  (define-public go-go-uber-org-atomic
 atomic access.")
     (license license:expat)))
 
+(define-public go-go-uber-org-goleak
+  (package
+    (name "go-go-uber-org-goleak")
+    (version "1.1.12")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/uber-go/goleak")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1wda3bd5xqbnvskgpr2lg6ccnrm3v9wl0i5c5b6xrrzf01b81vzg"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "go.uber.org/goleak"))
+    (native-inputs (list go-github-com-stretchr-testify go-golang-org-x-lint))
+    (synopsis "Goroutine leak detector")
+    (description "Goroutine leak detector to help avoid Goroutine
+leaks.")
+    (home-page "https://github.com/uber-go/goleak")
+    (license license:expat)))
+
 (define-public go-go-uber-org-multierr
   (package
     (name "go-go-uber-org-multierr")