diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-07-25 10:24:15 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-07-25 21:01:03 +0100 |
| commit | 7053ef0aaebcf1bc7a4205baccea973807ddae6f (patch) | |
| tree | 5492b194229c80b2c3fec0ccf707ef399bbcb4a4 /gnu/packages/prometheus.scm | |
| parent | 10b868c0a7d5fdb9edc68b0d56b64723e664af14 (diff) | |
gnu: go-github-com-prometheus-client-golang: Move to prometheus.
* gnu/packages/golang.scm (go-github-com-prometheus-client-golang): Move
from here ...
* gnu/packages/prometheus.scm: ... to here.
* gnu/packages/backup.scm: Add (gnu packages prometheus) module.
* gnu/packages/golang-xyz.scm: Likewise.
* gnu/packages/ipfs.scm: Likewise.
* gnu/packages/irc.scm: Likewise.
* gnu/packages/web.scm: Likewise.
Change-Id: If3d78d31b1491f8a95616e59f50371c2914242d9
Diffstat (limited to 'gnu/packages/prometheus.scm')
| -rw-r--r-- | gnu/packages/prometheus.scm | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index 5ec4fe0b12e..860bb740171 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #:use-module (gnu packages golang) | 29 | #:use-module (gnu packages golang) |
| 30 | #:use-module (gnu packages golang-build) | 30 | #:use-module (gnu packages golang-build) |
| 31 | #:use-module (gnu packages golang-check) | 31 | #:use-module (gnu packages golang-check) |
| 32 | #:use-module (gnu packages golang-crypto) | ||
| 32 | #:use-module (gnu packages golang-web) | 33 | #:use-module (gnu packages golang-web) |
| 33 | #:use-module (gnu packages golang-xyz)) | 34 | #:use-module (gnu packages golang-xyz)) |
| 34 | 35 | ||
| @@ -87,6 +88,56 @@ x/net/trace)} tracing wrappers @code{net.Conn}, both inbound | |||
| 87 | (@@code{net.Listener}) and outbound (@@code{net.Dialer}).") | 88 | (@@code{net.Listener}) and outbound (@@code{net.Dialer}).") |
| 88 | (license license:asl2.0))) | 89 | (license license:asl2.0))) |
| 89 | 90 | ||
| 91 | (define-public go-github-com-prometheus-client-golang | ||
| 92 | (package | ||
| 93 | (name "go-github-com-prometheus-client-golang") | ||
| 94 | (version "1.19.1") | ||
| 95 | (source | ||
| 96 | (origin | ||
| 97 | (method git-fetch) | ||
| 98 | (uri (git-reference | ||
| 99 | (url "https://github.com/prometheus/client_golang") | ||
| 100 | (commit (string-append "v" version)))) | ||
| 101 | (file-name (git-file-name name version)) | ||
| 102 | (sha256 | ||
| 103 | (base32 "0mx5q221pbkx081ycf1lp8sxz513220ya8qczkkvab943cwlcarv")))) | ||
| 104 | (build-system go-build-system) | ||
| 105 | (arguments | ||
| 106 | (list | ||
| 107 | #:import-path "github.com/prometheus/client_golang" | ||
| 108 | #:phases | ||
| 109 | #~(modify-phases %standard-phases | ||
| 110 | (add-after 'unpack 'remove-examples-and-tutorials | ||
| 111 | (lambda* (#:key import-path #:allow-other-keys) | ||
| 112 | (with-directory-excursion (string-append "src/" import-path) | ||
| 113 | (for-each delete-file-recursively | ||
| 114 | (list "api/prometheus/v1/example_test.go" | ||
| 115 | "examples" | ||
| 116 | "tutorial"))))) | ||
| 117 | ;; XXX: Workaround for go-build-system's lack of Go modules support. | ||
| 118 | (delete 'build) | ||
| 119 | (replace 'check | ||
| 120 | (lambda* (#:key tests? import-path #:allow-other-keys) | ||
| 121 | (when tests? | ||
| 122 | (with-directory-excursion (string-append "src/" import-path) | ||
| 123 | (invoke "go" "test" "-v" "./...")))))))) | ||
| 124 | (propagated-inputs | ||
| 125 | (list go-github-com-beorn7-perks | ||
| 126 | go-github-com-cespare-xxhash-v2 | ||
| 127 | go-github-com-davecgh-go-spew | ||
| 128 | go-github-com-json-iterator-go | ||
| 129 | go-github-com-prometheus-client-model | ||
| 130 | go-github-com-prometheus-common | ||
| 131 | go-github-com-prometheus-procfs | ||
| 132 | go-golang-org-x-sys | ||
| 133 | go-google-golang-org-protobuf)) | ||
| 134 | (home-page "https://github.com/prometheus/client_golang") | ||
| 135 | (synopsis "HTTP server and client tools for Prometheus") | ||
| 136 | (description | ||
| 137 | "This package @code{promhttp} provides HTTP client and server tools for | ||
| 138 | Prometheus metrics.") | ||
| 139 | (license license:asl2.0))) | ||
| 140 | |||
| 90 | (define-public go-github-com-prometheus-client-model | 141 | (define-public go-github-com-prometheus-client-model |
| 91 | (package | 142 | (package |
| 92 | (name "go-github-com-prometheus-client-model") | 143 | (name "go-github-com-prometheus-client-model") |
