mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-08-14 00:30:14 +00:00
rosenthal: prometheus-bin: Update to 3.11.2.
* modules/rosenthal/packages/binaries.scm (prometheus-bin): Update to 3.11.2. [build-system]: Switch to gnu-build-system. [arguments]: Add a simple check phase.
This commit is contained in:
parent
61ada05a4a
commit
028fc14ff2
@ -469,7 +469,7 @@ metrics no matter where they are stored.")
|
|||||||
(define-public prometheus-bin
|
(define-public prometheus-bin
|
||||||
(package
|
(package
|
||||||
(name "prometheus-bin")
|
(name "prometheus-bin")
|
||||||
(version "3.10.0")
|
(version "3.11.2")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://github.com/prometheus/prometheus"
|
(uri (string-append "https://github.com/prometheus/prometheus"
|
||||||
@ -477,13 +477,36 @@ metrics no matter where they are stored.")
|
|||||||
"/prometheus-" version ".linux-amd64.tar.gz"))
|
"/prometheus-" version ".linux-amd64.tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"08h1d7whb85vp28r1nlkrilyws6cs1hzxlw9zhiic63apfbhvia1"))))
|
"19j4l46k8vwsdzifk17sn5ajdrdj3zdvs9rd60lr640dx4gflhzn"))))
|
||||||
(build-system copy-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:install-plan
|
(list #:tests? (not (%current-target-system))
|
||||||
#~'(("prometheus" "bin/")
|
#:imported-modules
|
||||||
|
(append %default-gnu-imported-modules
|
||||||
|
%copy-build-system-modules)
|
||||||
|
#:modules
|
||||||
|
'((guix build utils)
|
||||||
|
(guix build gnu-build-system)
|
||||||
|
((guix build copy-build-system) #:prefix copy:))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(delete 'build)
|
||||||
|
(delete 'check)
|
||||||
|
(replace 'install
|
||||||
|
(lambda args
|
||||||
|
(apply (assoc-ref copy:%standard-phases 'install)
|
||||||
|
#:install-plan
|
||||||
|
'(("prometheus" "bin/")
|
||||||
("promtool" "bin/")
|
("promtool" "bin/")
|
||||||
("prometheus.yml" "etc/"))))
|
("prometheus.yml" "etc/"))
|
||||||
|
args)))
|
||||||
|
(add-after 'install 'check
|
||||||
|
(lambda* (#:key tests? outputs #:allow-other-keys)
|
||||||
|
(let ((cmd (search-input-file outputs "bin/prometheus")))
|
||||||
|
(when tests?
|
||||||
|
(invoke cmd "--help")
|
||||||
|
(invoke cmd "--version"))))))))
|
||||||
(synopsis "Monitoring system and time series database")
|
(synopsis "Monitoring system and time series database")
|
||||||
(description
|
(description
|
||||||
"Prometheus is a systems and service monitoring system. It collects
|
"Prometheus is a systems and service monitoring system. It collects
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user