Merge pull request #239948 from Strum355/tree-sitter-playground

tree-sitter: fix webui/playground notice & terminating

authored by Nick Cao and committed by GitHub d5d9df66 388d326f

+3 -10
+3 -10
pkgs/development/tools/parsing/tree-sitter/default.nix
··· 2 2 , stdenv 3 3 , fetchgit 4 4 , fetchFromGitHub 5 - , fetchurl 6 - , writeShellScript 7 5 , runCommand 8 6 , which 9 - , formats 10 7 , rustPlatform 11 - , jq 12 - , nix-prefetch-git 13 - , xe 14 - , curl 15 8 , emscripten 16 9 , Security 17 10 , callPackage ··· 120 113 121 114 postPatch = lib.optionalString (!webUISupport) '' 122 115 # remove web interface 123 - sed -e '/pub mod web_ui/d' \ 116 + sed -e '/pub mod playground/d' \ 124 117 -i cli/src/lib.rs 125 - sed -e 's/web_ui,//' \ 126 - -e 's/web_ui::serve(&current_dir.*$/println!("ERROR: web-ui is not available in this nixpkgs build; enable the webUISupport"); std::process::exit(1);/' \ 118 + sed -e 's/playground,//' \ 119 + -e 's/playground::serve(&current_dir.*$/println!("ERROR: web-ui is not available in this nixpkgs build; enable the webUISupport"); std::process::exit(1);/' \ 127 120 -i cli/src/main.rs 128 121 ''; 129 122