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:
committed by
Matthieu Coudron
parent
ef0299137e
commit
fee2e23c00
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user