tree-sitter: 1.18.2 -> 0.19.3

Update the grammars and add `allGrammars` derivation.
`nix-build "<nixpkgs>" -A tree-sitter.allGrammars` will create a
derivation with symlinks to all the grammars
This commit is contained in:
José Luis Lafuente
2021-03-16 01:38:58 +01:00
committed by Matthieu Coudron
parent ef0299137e
commit fee2e23c00
32 changed files with 217 additions and 136 deletions
@@ -11,6 +11,7 @@
, version
# source for the language grammar
, source
, location ? null
}:
stdenv.mkDerivation {
@@ -18,12 +19,18 @@ stdenv.mkDerivation {
pname = "${language}-grammar";
inherit version;
src = source;
src =
if location == null
then
source
else
"${source}/${location}"
;
buildInputs = [ tree-sitter ];
dontUnpack = true;
configurePhase= ":";
configurePhase = ":";
buildPhase = ''
runHook preBuild
scanner_cc="$src/src/scanner.cc"