lol

tree-sitter: fix webUISupport (#390421)

authored by

Austin Horstman and committed by
GitHub
9fd606ae e5540cb9

+14 -3
+14 -3
pkgs/development/tools/parsing/tree-sitter/default.nix
··· 8 8 which, 9 9 rustPlatform, 10 10 emscripten, 11 + openssl, 12 + pkg-config, 11 13 callPackage, 12 14 linkFarm, 13 15 substitute, ··· 173 175 useFetchCargoVendor = true; 174 176 cargoHash = "sha256-YaXeApg0U97Bm+kBdFdmfnkgg9GBxxYdaDzgCVN2sbY="; 175 177 176 - buildInputs = [ installShellFiles ]; 177 - nativeBuildInputs = [ which ] ++ lib.optionals webUISupport [ emscripten ]; 178 + buildInputs = 179 + [ installShellFiles ] 180 + ++ lib.optionals webUISupport [ 181 + openssl 182 + ]; 183 + nativeBuildInputs = 184 + [ which ] 185 + ++ lib.optionals webUISupport [ 186 + emscripten 187 + pkg-config 188 + ]; 178 189 179 190 patches = lib.optionals (!webUISupport) [ 180 191 (substitute { ··· 193 204 preBuild = lib.optionalString webUISupport '' 194 205 mkdir -p .emscriptencache 195 206 export EM_CACHE=$(pwd)/.emscriptencache 196 - bash ./script/build-wasm --debug 207 + cargo run --package xtask -- build-wasm --debug 197 208 ''; 198 209 199 210 postInstall =