tree-sitter: fix webUISupport build

Upstream moved the Web UI build helper to crates/xtask, so the existing emcc substitution targeted a removed path and failed during patchPhase.

Fixes #493699

Co-authored-by: bgl gwyng <bgl@gwyng.com>
This commit is contained in:
Austin Horstman
2026-07-02 23:18:52 -05:00
co-authored by bgl gwyng
parent 0eb539e656
commit dedef95861
+1 -1
View File
@@ -167,7 +167,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
postPatch =
lib.optionalString webUISupport ''
substituteInPlace cli/loader/src/lib.rs \
substituteInPlace crates/xtask/src/build_wasm.rs \
--replace-fail 'let emcc_name = if cfg!(windows) { "emcc.bat" } else { "emcc" };' 'let emcc_name = "${lib.getExe' emscripten "emcc"}";'
''
# when building on static platforms: