diff mbox series

[bug#54560,10/47] gnu: Add go-github-com-go-stack-stack.

Message ID 20220325133211.5128-10-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-github-com-go-stack-stack): New variable.
---
 gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e2bf81528f..a46a6f955b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9915,6 +9915,33 @@  (define-public go-github-com-go-logfmt-logfmt
     (home-page "https://github.com/go-logfmt/logfmt")
     (license license:expat)))
 
+(define-public go-github-com-go-stack-stack
+  (package
+    (name "go-github-com-go-stack-stack")
+    (version "1.8.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/go-stack/stack")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "01m6l9w84yq2yyly8bdfsgc386hla1gn9431c7vr3mfa3bchj5wb"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/go-stack/stack"))
+    (synopsis "Utilities to capture, manipulate, and format call
+stacks")
+    (description
+     "Package @code{stack} implements utilities to capture, manipulate,
+and format call stacks.  It provides a simpler API than package
+@code{runtime}.  The implementation takes care of the minutia and
+special cases of interpreting the program counter (pc) values returned
+by @code{runtime.Callers}.")
+    (home-page "https://github.com/go-stack/stack")
+    (license license:expat)))
+
 (define-public go-google-golang-org-protobuf
   (package
     (name "go-google-golang-org-protobuf")