mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-03-12 21:04:22 +00:00
rosenthal: alloy-bin: Use ‘binary-package’.
This commit is contained in:
parent
2db419232a
commit
9f069f714d
@ -11,6 +11,7 @@
|
|||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix platform)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module (rosenthal utils packages)
|
#:use-module (rosenthal utils packages)
|
||||||
;; Guix origin methods
|
;; Guix origin methods
|
||||||
@ -483,24 +484,20 @@ rather a set of labels for each log stream.")
|
|||||||
"1pxnjzygm2mylipf6cjkqxm4k3i9vnm7v80avxbhv8400p3aszqk"))))))
|
"1pxnjzygm2mylipf6cjkqxm4k3i9vnm7v80avxbhv8400p3aszqk"))))))
|
||||||
|
|
||||||
(define-public alloy-bin
|
(define-public alloy-bin
|
||||||
|
(binary-package
|
||||||
|
`(("x86_64-linux" . ,%alloy-source-x86_64-linux)
|
||||||
|
("aarch64-linux" . ,%alloy-source-aarch64-linux))
|
||||||
(package
|
(package
|
||||||
(name "alloy-bin")
|
(name "alloy-bin")
|
||||||
(version (package-version %alloy-source-x86_64-linux))
|
(version "")
|
||||||
(source #f)
|
(source #f)
|
||||||
(build-system copy-build-system)
|
(build-system copy-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(let ((binary-source
|
|
||||||
(match (or (%current-target-system)
|
|
||||||
(%current-system))
|
|
||||||
((? target-aarch64?)
|
|
||||||
(package-source %alloy-source-aarch64-linux))
|
|
||||||
(_
|
|
||||||
(package-source %alloy-source-x86_64-linux)))))
|
|
||||||
(list
|
(list
|
||||||
#:install-plan
|
#:install-plan
|
||||||
(match (or (%current-target-system)
|
(match (or (and=> (%current-target-system) platform-target->system)
|
||||||
(%current-system))
|
(%current-system))
|
||||||
((? target-aarch64?)
|
("aarch64-linux"
|
||||||
#~'(("alloy-linux-arm64" "bin/alloy")))
|
#~'(("alloy-linux-arm64" "bin/alloy")))
|
||||||
(_
|
(_
|
||||||
#~'(("alloy-linux-amd64" "bin/alloy"))))
|
#~'(("alloy-linux-amd64" "bin/alloy"))))
|
||||||
@ -510,10 +507,6 @@ rather a set of labels for each log stream.")
|
|||||||
(guix build utils))
|
(guix build utils))
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(replace 'unpack
|
|
||||||
(lambda _
|
|
||||||
((assoc-ref %standard-phases 'unpack)
|
|
||||||
#:source #+binary-source)))
|
|
||||||
(add-after 'install 'patch-elf
|
(add-after 'install 'patch-elf
|
||||||
(lambda _
|
(lambda _
|
||||||
(let ((name "alloy")
|
(let ((name "alloy")
|
||||||
@ -538,7 +531,7 @@ rather a set of labels for each log stream.")
|
|||||||
(invoke alloy "completion" shell)))))
|
(invoke alloy "completion" shell)))))
|
||||||
'(("bash" . "share/bash-completion/completions/alloy")
|
'(("bash" . "share/bash-completion/completions/alloy")
|
||||||
("fish" . "share/fish/vendor_completions.d/alloy.fish")
|
("fish" . "share/fish/vendor_completions.d/alloy.fish")
|
||||||
("zsh" . "share/zsh/site-functions/_alloy"))))))))))
|
("zsh" . "share/zsh/site-functions/_alloy")))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(append (if (%current-target-system)
|
(append (if (%current-target-system)
|
||||||
(list this-package)
|
(list this-package)
|
||||||
@ -552,7 +545,6 @@ rather a set of labels for each log stream.")
|
|||||||
"Grafana Alloy is an open source OpenTelemetry Collector distribution with
|
"Grafana Alloy is an open source OpenTelemetry Collector distribution with
|
||||||
built-in Prometheus pipelines and support for metrics, logs, traces, and
|
built-in Prometheus pipelines and support for metrics, logs, traces, and
|
||||||
profiles.")
|
profiles.")
|
||||||
(license license:agpl3)
|
(license license:agpl3))))
|
||||||
(properties '((disable-updater? . #t)))))
|
|
||||||
|
|
||||||
(define-deprecated-package alloy-bin-aarch64-linux alloy-bin)
|
(define-deprecated-package alloy-bin-aarch64-linux alloy-bin)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user