mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-02-17 09:32:36 +00:00
rosenthal: alloy-bin: Use ‘mapping-for-system’.
This commit is contained in:
parent
a42b6b4d24
commit
7c6e2c6c98
@ -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))))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user