Subject: [PATCH 45/47] gnu: Add go-github-com-prometheus-alertmanager-api.

From: Leo Nikkilä <[email-masked]>
Date: Fri, 25 Mar 2022 15:32:09 +0200

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

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