diff mbox series

[bug#54560,46/47] gnu: Add go-github-com-prometheus-exporter-toolkit.

Message ID 20220325133211.5128-46-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:32 p.m. UTC
* gnu/packages/golang.scm (go-github-com-prometheus-exporter-toolkit):
New variable.
---
 gnu/packages/golang.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Comments

M March 25, 2022, 7:52 p.m. UTC | #1
Leo Nikkilä schreef op vr 25-03-2022 om 15:32 [+0200]:
> +       #:tests? #f

Why?
Leo Nikkilä March 25, 2022, 10:55 p.m. UTC | #2
> > +       #:tests? #f
>
> Why?

I copied this over from the packages in (... syncthing), this is unnecessary as well. Will remove.
diff mbox series

Patch

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