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

This commit is contained in:
Hilton Chain committed 2026-02-14 00:37:22 +08:00
1 parent a42b6b4d24
commit 7c6e2c6c98
1 file changed
+3 -8
+3 -8
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))))