Subject: [PATCH 3/8] gnu: Add go-go-uber-org-automaxprocs.

From: Benjamin <[email-masked]>
Date: Sat, 18 Nov 2023 19:17:30 +0100

* gnu/packages/golang.scm (go-go-uber-org-automaxprocs): New variable.

Change-Id: I06abcaf3f3b74e23e5808d4ff37a93a0dc45b137
---
 gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 00620690b9..b644783d1d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -11500,6 +11500,31 @@ (define-public go-go-uber-org-zap
 Go.")
     (license license:expat)))
 
+(define-public go-go-uber-org-automaxprocs
+  (package
+    (name "go-go-uber-org-automaxprocs")
+    (version "1.5.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/uber-go/automaxprocs")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "03arxcfaj7k6iwfdk0liaynxf9rjfj9m5glsjp7ws01xjkgrdpbc"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "go.uber.org/automaxprocs"))
+    (native-inputs (list go-github-com-stretchr-testify
+                         go-github-com-prashantv-gostub))
+    (home-page "https://go.uber.org/automaxprocs")
+    (synopsis "CPU-count detection library for Go")
+    (description
+     "This package automatically set GOMAXPROCS to match Linux container
+CPU quota.")
+    (license license:expat)))
+
 (define-public go-github-com-davecgh-go-xdr
   (package
     (name "go-github-com-davecgh-go-xdr")
-- 
2.41.0