diff options
author | Nick Cao <nickcao@nichi.co> | 2023-06-29 12:50:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 12:50:25 +0800 |
commit | d5d9df6642e7c8f846c3afc67f1fda882edaee0b (patch) | |
tree | 4794eb74f3a4e5097e7f2dde95f016df4fee47d3 /pkgs/development/tools/parsing | |
parent | 388d326f2f95c0af0353499ff6137adbd759f0a9 (diff) | |
parent | 67ad8087dee56803fb0760984e1968d55218fb0a (diff) | |
download | nixpkgs-d5d9df6642e7c8f846c3afc67f1fda882edaee0b.tar nixpkgs-d5d9df6642e7c8f846c3afc67f1fda882edaee0b.tar.gz nixpkgs-d5d9df6642e7c8f846c3afc67f1fda882edaee0b.tar.bz2 nixpkgs-d5d9df6642e7c8f846c3afc67f1fda882edaee0b.tar.lz nixpkgs-d5d9df6642e7c8f846c3afc67f1fda882edaee0b.tar.xz nixpkgs-d5d9df6642e7c8f846c3afc67f1fda882edaee0b.tar.zst nixpkgs-d5d9df6642e7c8f846c3afc67f1fda882edaee0b.zip |
Merge pull request #239948 from Strum355/tree-sitter-playground
tree-sitter: fix webui/playground notice & terminating
Diffstat (limited to 'pkgs/development/tools/parsing')
-rw-r--r-- | pkgs/development/tools/parsing/tree-sitter/default.nix | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/pkgs/development/tools/parsing/tree-sitter/default.nix b/pkgs/development/tools/parsing/tree-sitter/default.nix index 481dbe42d2b..30adef7ccab 100644 --- a/pkgs/development/tools/parsing/tree-sitter/default.nix +++ b/pkgs/development/tools/parsing/tree-sitter/default.nix @@ -2,16 +2,9 @@ , stdenv , fetchgit , fetchFromGitHub -, fetchurl -, writeShellScript , runCommand , which -, formats , rustPlatform -, jq -, nix-prefetch-git -, xe -, curl , emscripten , Security , callPackage @@ -120,10 +113,10 @@ rustPlatform.buildRustPackage { postPatch = lib.optionalString (!webUISupport) '' # remove web interface - sed -e '/pub mod web_ui/d' \ + sed -e '/pub mod playground/d' \ -i cli/src/lib.rs - sed -e 's/web_ui,//' \ - -e 's/web_ui::serve(¤t_dir.*$/println!("ERROR: web-ui is not available in this nixpkgs build; enable the webUISupport"); std::process::exit(1);/' \ + sed -e 's/playground,//' \ + -e 's/playground::serve(¤t_dir.*$/println!("ERROR: web-ui is not available in this nixpkgs build; enable the webUISupport"); std::process::exit(1);/' \ -i cli/src/main.rs ''; |