me
/
guix
Archived
1
0
Fork 0

gnu: rust-swc: Prepare for cross-compilation.

* gnu/packages/rust-apps.scm (rust-swc)[arguments]: Adjust custom
'install phase to search all of the 'target' directory for the swc
binary to install.

Change-Id: Ib1a1ebce0ea61d14530f17a93b898e425342a1ad
Efraim Flashner 2023-11-19 13:35:23 +02:00
parent 84ca518b26
commit 6d45f24dee
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 3 additions and 2 deletions

View File

@ -1361,8 +1361,9 @@ touchscreen devices.")
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")))
(install-file "target/release/swc" bin)))))))
(bin (string-append out "/bin"))
(swc (car (find-files "target" "^swc$"))))
(install-file swc bin)))))))
(home-page "https://swc.rs/")
(synopsis "Typescript/javascript compiler")
(description "@code{rust-swc} is a typescript/javascript compiler. It