guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#54560] [PATCH 46/47] gnu: Add go-github-com-prometheus-exporter-too


From: Leo Nikkilä
Subject: [bug#54560] [PATCH 46/47] gnu: Add go-github-com-prometheus-exporter-toolkit.
Date: Fri, 25 Mar 2022 15:32:10 +0200

* gnu/packages/golang.scm (go-github-com-prometheus-exporter-toolkit):
New variable.
---
 gnu/packages/golang.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 92d3e40697..47ab9d8212 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10707,6 +10707,43 @@ (define-public 
go-github-com-prometheus-alertmanager-api
     (home-page "https://github.com/prometheus/alertmanager";)
     (license license:asl2.0)))
 
+(define-public go-github-com-prometheus-exporter-toolkit
+  (package
+    (name "go-github-com-prometheus-exporter-toolkit")
+    (version "0.7.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/prometheus/exporter-toolkit";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "082di72cyj34wjjhi5ji59bjabdy897faji07v7qm20a4f7csdbs"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/prometheus/exporter-toolkit"
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         ;; Source-only package
+         (delete 'build))))
+    (propagated-inputs (list go-github-com-go-kit-log
+                             go-github-com-golang-protobuf-ptypes
+                             go-github-com-mwitkow-go-conntrack
+                             go-github-com-pkg-errors
+                             go-github-com-prometheus-common
+                             go-golang-org-x-crypto
+                             go-golang-org-x-oauth2
+                             go-golang-org-x-text
+                             go-gopkg-in-yaml-v2))
+    (synopsis "Utility package to build Prometheus exporters")
+    (description
+     "This is a Go library for Prometheus exporters, meant
+to be used in combination with the @code{client_golang} package.")
+    (home-page "https://github.com/prometheus/exporter-toolkit";)
+    (license license:asl2.0)))
+
 (define-public go-github-com-simonpasquier-klog-gokit
   (package
     (name "go-github-com-simonpasquier-klog-gokit")
-- 
2.34.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]