sharlatan pushed a commit to branch go-team
in repository guix.

commit 01457e4e0620c8345220df0f345cf781c4ce7c3e
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Tue Feb 18 13:36:12 2025 +0000

    gnu: Add go-github-com-anacrolix-envpprof.
    
    * gnu/packages/golang-web.scm (go-github-com-anacrolix-envpprof): New 
variable.
    
    Change-Id: I524a3dc0fa3b472b2bef1648e9e43cbde767660d
---
 gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 5cc1202a40..6bbba5400b 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -419,6 +419,35 @@ required dependencies.  The HTTP response contains the 
aggregated health
 result and details about the health status of each component.")
     (license license:expat)))
 
+(define-public go-github-com-anacrolix-envpprof
+  (package
+    (name "go-github-com-anacrolix-envpprof")
+    (version "1.4.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/anacrolix/envpprof";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "121kk1fq1919f0gcnmaxsk6n8flspxa00pyfwl09dysyivwbpk67"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/anacrolix/envpprof"))
+    (propagated-inputs (list go-github-com-anacrolix-log))
+    (home-page "https://github.com/anacrolix/envpprof";)
+    (synopsis "Control HTTP mux via environment variable")
+    (description
+     "This package implements a functionality to configure Go's pprof features
+and default HTTP mux using the environment variable @code{GOPPROF}.
+@code{envpprof} has an @code{init} function that will run at process
+initialization that checks the value of the @code{GOPPROF} environment
+variable.  The variable can contain a comma-separated list of values, for
+example @code{GOPPROF=http,block}.")
+    (license license:expat)))
+
 (define-public go-github-com-arceliar-ironwood
   (package
     (name "go-github-com-arceliar-ironwood")

Reply via email to