diff mbox series

[bug#54560,45/47] gnu: Add go-github-com-prometheus-alertmanager-api.

Message ID 20220325133211.5128-45-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-alertmanager-api):
New variable.
---
 gnu/packages/golang.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e4a09fea4a..92d3e40697 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10671,6 +10671,42 @@  (define-public go-github-com-oklog-ulid
     (home-page "https://github.com/oklog/ulid")
     (license license:asl2.0)))
 
+(define-public go-github-com-prometheus-alertmanager-api
+  (package
+    (name "go-github-com-prometheus-alertmanager-api")
+    (version "0.23.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/prometheus/alertmanager")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1d9mad4yp5kpcyyp9nhqv4ayz8d2gw7mv4d8ikn9ihrjcn0qmafk"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/prometheus/alertmanager/api"
+       #:unpack-path "github.com/prometheus/alertmanager"
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         ;; Source-only package
+         (delete 'build))))
+    (propagated-inputs (list go-github-com-go-openapi-swag
+                             go-github-com-go-openapi-validate))
+    (synopsis "Prometheus Alertmanager")
+    (description
+     "Alertmanager handles alerts sent by client applications such as
+the Prometheus server.  It takes care of deduplicating, grouping, and
+routing them to the correct receiver integrations such as email,
+PagerDuty, or OpsGenie.  It also takes care of silencing and inhibition
+of alerts.
+
+This package contains the API definitions for Alertmanager.")
+    (home-page "https://github.com/prometheus/alertmanager")
+    (license license:asl2.0)))
+
 (define-public go-github-com-simonpasquier-klog-gokit
   (package
     (name "go-github-com-simonpasquier-klog-gokit")