mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
fetch and compile tree-sitter grammars in helix-term build
This restores much of the behavior that existed before this PR: helix will build the grammars when compiling. The difference is that now fetching is also done during the build phase and is done much more quickly - both shallow and in parallel.
This commit is contained in:
parent
6fcab90d16
commit
b157c5a8a4
5 changed files with 17 additions and 35 deletions
|
@ -35,6 +35,8 @@
|
|||
overrides = {
|
||||
crateOverrides = common: _: rec {
|
||||
helix-term = prev: {
|
||||
# disable fetching and building of tree-sitter grammars in the helix-term build.rs
|
||||
HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1";
|
||||
buildInputs = (prev.buildInputs or [ ]) ++ [ common.cCompiler.cc.lib ];
|
||||
nativeBuildInputs = (prev.nativeBuildInputs or [ ]) ++ [ common.pkgs.makeWrapper ];
|
||||
preConfigure = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue