WIP: tests for highlighting

This commit is contained in:
2023-07-07 01:47:46 +00:00
parent 27596798d6
commit b9e6711f82
17 changed files with 89 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
{
description = "tree-sitter implementation for nix-shell scripts";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05";
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = github:numtide/flake-utils;
};
@@ -12,18 +12,9 @@
inherit system;
};
in rec {
packages.tree-sitter-nixshell = pkgs.callPackage ./default.nix { };
defaultPackage = packages.tree-sitter-nixshell;
packages.tree-sitter-nix-shell = pkgs.callPackage ./default.nix { };
defaultPackage = packages.tree-sitter-nix-shell;
devShells.default = pkgs.callPackage ./shell.nix { };
apps.clean = {
type = "app";
program = builtins.toString (pkgs.writeShellScript "clean" ''
# remove build artifacts
rm -f Cargo.toml binding.gyp
rm -rf bindings/ src/
'');
};
});
}