mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
tree-sitter: fix webui/playground notice
This commit is contained in:
parent
547cd96f10
commit
67ad8087de
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
|
||||
|
@ -118,10 +111,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