fix to build against tree-sitter 0.15
This commit is contained in:
22
default.nix
22
default.nix
@@ -2,14 +2,28 @@
|
||||
|
||||
pkgs.tree-sitter.buildGrammar {
|
||||
src = ./.;
|
||||
version = "0.1.0";
|
||||
version = "0.2.0";
|
||||
language = "nix-shell";
|
||||
generate = true;
|
||||
location = "tree-sitter-nix-shell";
|
||||
|
||||
checkPhase = ''
|
||||
(cd ..; make test)
|
||||
'';
|
||||
nativeCheckInputs = with pkgs; [ htmlq ];
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
(cd ..; make test)
|
||||
runHook postCheck
|
||||
'';
|
||||
doCheck = true;
|
||||
|
||||
nativeInstallCheckInputs = with pkgs; [ tree ];
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
# make sure that all files i expect to be installed are actually installed
|
||||
(test -x $out/parser && test -f $out/queries/highlights.scm && test -f $out/queries/injections.scm) || \
|
||||
(tree $out; echo "expected output to contain /parser and /queries/"; false)
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
doInstallCheck = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user