rosenthal: mimir-bin: Update to 3.0.4.

* modules/rosenthal/packages/binaries.scm (mimir-bin): Update to 3.0.4.
[arguments]: Add a basic check phase.
This commit is contained in:
Hilton Chain 2026-03-29 16:17:31 +08:00
parent c548c1425f
commit 00e9db6dec
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -400,7 +400,7 @@ observed.")
(define-public mimir-bin (define-public mimir-bin
(package (package
(name "mimir-bin") (name "mimir-bin")
(version "2.17.1") (version "3.0.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@ -408,10 +408,11 @@ observed.")
version "/mimir-linux-amd64")) version "/mimir-linux-amd64"))
(sha256 (sha256
(base32 (base32
"1vnrpzwyjz7plzdiih65853ndvg64a9n1x1i7jqr085byhpayp82")))) "09bhfbax659p1svzk8gq37vckqd62xsr219ab8f4r36c74ml3vz8"))))
(build-system copy-build-system) (build-system copy-build-system)
(arguments (arguments
(list #:phases (list #:tests? (not (%current-target-system))
#:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(replace 'install (replace 'install
(lambda* (#:key source #:allow-other-keys) (lambda* (#:key source #:allow-other-keys)
@ -420,7 +421,12 @@ observed.")
(mkdir-p dest) (mkdir-p dest)
(with-directory-excursion dest (with-directory-excursion dest
(copy-file source name) (copy-file source name)
(chmod name #o555)))))))) (chmod name #o555)))))
(add-after 'install 'check
(lambda* (#:key tests? outputs #:allow-other-keys)
(let ((cmd (search-input-file outputs "bin/mimir")))
(when tests?
(invoke cmd "-version"))))))))
(synopsis "Scalable long-term storage for Prometheus") (synopsis "Scalable long-term storage for Prometheus")
(description (description
"Grafana Mimir provides horizontally scalable, highly available, "Grafana Mimir provides horizontally scalable, highly available,