From 6d45f24dee5408a54e71ff36bdfc9d9f801ec52f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 19 Nov 2023 13:35:23 +0200 Subject: 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 --- gnu/packages/rust-apps.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index e1de336b99..173a1091fa 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -1361,8 +1361,9 @@ (define-public rust-swc (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 -- cgit v1.2.3