guix_mirror_bot pushed a commit to branch rust-team
in repository guix.
commit fbca7d7fef95c967705cd3b8c13532f41021c098
Author: Efraim Flashner <[email protected]>
AuthorDate: Sun Nov 8 16:57:13 2026 +0200
gnu: linguify-fluent-wasm: Simplify the building process.
* gnu/packages/typst.scm (linguify-fluent-wasm)[arguments]: Remove
custom 'configure-target phase and override the 'configure phase to set
the wasm target.
---
gnu/packages/typst.scm | 22 ++++++----------------
1 file changed, 6 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/typst.scm b/gnu/packages/typst.scm
index 4a70ac21bed..8d7e1a95f99 100644
--- a/gnu/packages/typst.scm
+++ b/gnu/packages/typst.scm
@@ -319,22 +319,12 @@ used by the actual CeTZ package.")
#:tests? #f ; no tests
#:phases
#~(modify-phases %standard-phases
- (add-after 'configure 'configure-target
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((sysroot
- (assoc-ref inputs
- "rust-sysroot-for-wasm32-unknown-unknown")))
- (with-atomic-file-replacement ".cargo/config"
- (lambda (in out)
- (display (string-append "\
-[target.wasm32-unknown-unknown]
-linker = 'lld'
-
-[build]
-target = ['wasm32-unknown-unknown']
-") out)
- (dump-port in out)))
- (setenv "RUSTFLAGS" (string-append "--sysroot " sysroot)))))
+ (replace 'configure
+ (lambda* (#:key inputs #:allow-other-keys #:rest args)
+ (apply (assoc-ref %standard-phases 'configure)
+ (append args
+ (list #:target "wasm32-unknown-unknown"
+ #:cargo-target "wasm32-unknown-unknown")))))
(replace 'install
(lambda _
(install-file