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:
co-authored by
bgl gwyng
parent
0eb539e656
commit
dedef95861
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user