add nix infrastructure to build the grammar

This commit is contained in:
2023-07-04 07:20:42 +00:00
parent edd60ed689
commit ec29df4a13
6 changed files with 118 additions and 0 deletions

11
shell.nix Normal file
View File

@@ -0,0 +1,11 @@
{ pkgs ? import <nixpkgs> { } }:
let
tree-sitter-nixshell = pkgs.callPackage ./. { };
in
pkgs.mkShell {
inherit (tree-sitter-nixshell) nativeBuildInputs;
# to manually build, once in this shell, just run
# `tree-sitter generate`
}