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

From: Leo Nikkilä <[email-masked]>
Date: Fri, 25 Mar 2022 15:31:34 +0200

* gnu/packages/golang.scm (go-github-com-go-stack-stack): New variable.
---
 gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

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")
-- 
2.34.0