mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
10b868c0a7
commit
7053ef0aae
7 changed files with 56 additions and 49 deletions
|
@ -88,6 +88,7 @@
|
||||||
#:use-module (gnu packages pcre)
|
#:use-module (gnu packages pcre)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages prometheus)
|
||||||
#:use-module (gnu packages protobuf)
|
#:use-module (gnu packages protobuf)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages python-build)
|
#:use-module (gnu packages python-build)
|
||||||
|
|
|
@ -72,6 +72,7 @@
|
||||||
#:use-module (gnu packages golang-maths)
|
#:use-module (gnu packages golang-maths)
|
||||||
#:use-module (gnu packages golang-web)
|
#:use-module (gnu packages golang-web)
|
||||||
#:use-module (gnu packages linux)
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (gnu packages prometheus) ; for go-github-com-nbrownus-go-metrics-prometheus
|
||||||
#:use-module (gnu packages specifications))
|
#:use-module (gnu packages specifications))
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
|
@ -7375,55 +7375,6 @@ system, kernel, and process metrics from the @file{/proc} pseudo file system.")
|
||||||
(home-page "https://github.com/prometheus/procfs")
|
(home-page "https://github.com/prometheus/procfs")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public go-github-com-prometheus-client-golang
|
|
||||||
(package
|
|
||||||
(name "go-github-com-prometheus-client-golang")
|
|
||||||
(version "1.19.1")
|
|
||||||
(source (origin
|
|
||||||
(method git-fetch)
|
|
||||||
(uri (git-reference
|
|
||||||
(url "https://github.com/prometheus/client_golang")
|
|
||||||
(commit (string-append "v" version))))
|
|
||||||
(file-name (git-file-name name version))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"0mx5q221pbkx081ycf1lp8sxz513220ya8qczkkvab943cwlcarv"))))
|
|
||||||
(build-system go-build-system)
|
|
||||||
(arguments
|
|
||||||
(list
|
|
||||||
#:import-path "github.com/prometheus/client_golang"
|
|
||||||
#:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'remove-examples-and-tutorials
|
|
||||||
(lambda* (#:key import-path #:allow-other-keys)
|
|
||||||
(with-directory-excursion (string-append "src/" import-path)
|
|
||||||
(for-each delete-file-recursively
|
|
||||||
(list "api/prometheus/v1/example_test.go"
|
|
||||||
"examples"
|
|
||||||
"tutorial")))))
|
|
||||||
;; XXX: Workaround for go-build-system's lack of Go modules support.
|
|
||||||
(delete 'build)
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(with-directory-excursion (string-append "src/" import-path)
|
|
||||||
(invoke "go" "test" "-v" "./..."))))))))
|
|
||||||
(propagated-inputs
|
|
||||||
(list go-github-com-beorn7-perks
|
|
||||||
go-github-com-cespare-xxhash-v2
|
|
||||||
go-github-com-davecgh-go-spew
|
|
||||||
go-github-com-json-iterator-go
|
|
||||||
go-github-com-prometheus-client-model
|
|
||||||
go-github-com-prometheus-common
|
|
||||||
go-github-com-prometheus-procfs
|
|
||||||
go-golang-org-x-sys
|
|
||||||
go-google-golang-org-protobuf))
|
|
||||||
(synopsis "HTTP server and client tools for Prometheus")
|
|
||||||
(description "This package @code{promhttp} provides HTTP client and
|
|
||||||
server tools for Prometheus metrics.")
|
|
||||||
(home-page "https://github.com/prometheus/client_golang")
|
|
||||||
(license license:asl2.0)))
|
|
||||||
|
|
||||||
(define-public go-github-com-zalando-go-keyring
|
(define-public go-github-com-zalando-go-keyring
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-zalando-go-keyring")
|
(name "go-github-com-zalando-go-keyring")
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
#:use-module (gnu packages golang-crypto)
|
#:use-module (gnu packages golang-crypto)
|
||||||
#:use-module (gnu packages golang-web)
|
#:use-module (gnu packages golang-web)
|
||||||
#:use-module (gnu packages golang-xyz)
|
#:use-module (gnu packages golang-xyz)
|
||||||
|
#:use-module (gnu packages prometheus)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages shells)
|
#:use-module (gnu packages shells)
|
||||||
#:use-module (gnu packages specifications))
|
#:use-module (gnu packages specifications))
|
||||||
|
|
|
@ -90,6 +90,7 @@
|
||||||
#:use-module (gnu packages pcre)
|
#:use-module (gnu packages pcre)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages prometheus)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages python-crypto)
|
#:use-module (gnu packages python-crypto)
|
||||||
#:use-module (gnu packages python-xyz)
|
#:use-module (gnu packages python-xyz)
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#:use-module (gnu packages golang)
|
#:use-module (gnu packages golang)
|
||||||
#:use-module (gnu packages golang-build)
|
#:use-module (gnu packages golang-build)
|
||||||
#:use-module (gnu packages golang-check)
|
#:use-module (gnu packages golang-check)
|
||||||
|
#:use-module (gnu packages golang-crypto)
|
||||||
#:use-module (gnu packages golang-web)
|
#:use-module (gnu packages golang-web)
|
||||||
#:use-module (gnu packages golang-xyz))
|
#:use-module (gnu packages golang-xyz))
|
||||||
|
|
||||||
|
@ -87,6 +88,56 @@ x/net/trace)} tracing wrappers @code{net.Conn}, both inbound
|
||||||
(@@code{net.Listener}) and outbound (@@code{net.Dialer}).")
|
(@@code{net.Listener}) and outbound (@@code{net.Dialer}).")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public go-github-com-prometheus-client-golang
|
||||||
|
(package
|
||||||
|
(name "go-github-com-prometheus-client-golang")
|
||||||
|
(version "1.19.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/prometheus/client_golang")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "0mx5q221pbkx081ycf1lp8sxz513220ya8qczkkvab943cwlcarv"))))
|
||||||
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:import-path "github.com/prometheus/client_golang"
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'remove-examples-and-tutorials
|
||||||
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(for-each delete-file-recursively
|
||||||
|
(list "api/prometheus/v1/example_test.go"
|
||||||
|
"examples"
|
||||||
|
"tutorial")))))
|
||||||
|
;; XXX: Workaround for go-build-system's lack of Go modules support.
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(invoke "go" "test" "-v" "./..."))))))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list go-github-com-beorn7-perks
|
||||||
|
go-github-com-cespare-xxhash-v2
|
||||||
|
go-github-com-davecgh-go-spew
|
||||||
|
go-github-com-json-iterator-go
|
||||||
|
go-github-com-prometheus-client-model
|
||||||
|
go-github-com-prometheus-common
|
||||||
|
go-github-com-prometheus-procfs
|
||||||
|
go-golang-org-x-sys
|
||||||
|
go-google-golang-org-protobuf))
|
||||||
|
(home-page "https://github.com/prometheus/client_golang")
|
||||||
|
(synopsis "HTTP server and client tools for Prometheus")
|
||||||
|
(description
|
||||||
|
"This package @code{promhttp} provides HTTP client and server tools for
|
||||||
|
Prometheus metrics.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public go-github-com-prometheus-client-model
|
(define-public go-github-com-prometheus-client-model
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-prometheus-client-model")
|
(name "go-github-com-prometheus-client-model")
|
||||||
|
|
|
@ -186,6 +186,7 @@
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages perl-check)
|
#:use-module (gnu packages perl-check)
|
||||||
#:use-module (gnu packages perl-compression)
|
#:use-module (gnu packages perl-compression)
|
||||||
|
#:use-module (gnu packages prometheus)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages python-build)
|
#:use-module (gnu packages python-build)
|
||||||
#:use-module (gnu packages python-check)
|
#:use-module (gnu packages python-check)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue