Merge pull request #239948 from Strum355/tree-sitter-playground
tree-sitter: fix webui/playground notice & terminating
This commit is contained in:
commit
d5d9df6642
1 changed files with 3 additions and 10 deletions
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue