kak-tree-sitter cleanup
This commit is contained in:
parent
47f187c3b5
commit
0db5dedf91
1 changed files with 1 additions and 19 deletions
|
|
@ -1,8 +1,6 @@
|
|||
{ pkgs, lib, ... }:
|
||||
let
|
||||
hx-src = pkgs.helix.src;
|
||||
kts-src = pkgs.unstable.kak-tree-sitter-unwrapped.src;
|
||||
inherit (pkgs) fetchFromGitHub;
|
||||
in
|
||||
with pkgs.tree-sitter-grammars;
|
||||
{
|
||||
|
|
@ -14,13 +12,6 @@ with pkgs.tree-sitter-grammars;
|
|||
+ ''
|
||||
[language.${name}.grammar.source.local]
|
||||
path = "${vals.parser}"
|
||||
[language.${name}.grammar]
|
||||
compile = "cc"
|
||||
compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."]
|
||||
compile_flags = ["-O3"]
|
||||
link = "cc"
|
||||
link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "typescript.so"]
|
||||
link_flags = ["-O3"]
|
||||
[language.${name}.queries.source.local]
|
||||
path = "${vals.queries}"
|
||||
[language.${name}.queries]
|
||||
|
|
@ -48,16 +39,7 @@ with pkgs.tree-sitter-grammars;
|
|||
queries = tree-sitter-javascript + "/queries";
|
||||
};
|
||||
typescript = {
|
||||
parser =
|
||||
tree-sitter-typescript.overrideAttrs (old: {
|
||||
src = fetchFromGitHub {
|
||||
owner = "tree-sitter";
|
||||
repo = "tree-sitter-typescript";
|
||||
rev = "b1bf4825d9eaa0f3bdeb1e52f099533328acfbdf";
|
||||
hash = "sha256-oZKit8kScXcOptmT2ckywL5JlAVe+wuwhuj6ThEI5OQ=";
|
||||
};
|
||||
})
|
||||
+ "/parser";
|
||||
parser = tree-sitter-typescript + "/parser";
|
||||
queries = kts-src + "/runtime/queries/typescript";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue