rosenthal: alloy-bin: Use ‘mapping-for-system’.

This commit is contained in:
Hilton Chain 2026-02-13 16:07:20 +08:00
parent a42b6b4d24
commit 7c6e2c6c98
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -506,14 +506,9 @@ rather a set of labels for each log stream.")
(delete 'check)
(replace 'install
(lambda _
(let ((src
(match #$(or (and=> (%current-target-system)
platform-target->system)
(%current-system))
("aarch64-linux"
"alloy-linux-arm64")
(_
"alloy-linux-amd64")))
(let ((src #$(mapping-for-system
'(("x86_64-linux" . "alloy-linux-amd64")
("aarch64-linux" . "alloy-linux-arm64"))))
(dst (in-vicinity #$output "bin/alloy")))
(mkdir-p (dirname dst))
(copy-file src dst))))