add nix infrastructure to build the grammar
This commit is contained in:
20
flake.nix
Normal file
20
flake.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
description = "tree-sitter implementation for nix-shell scripts";
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-23.05";
|
||||
flake-utils.url = github:numtide/flake-utils;
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
with flake-utils.lib; eachSystem allSystems (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in rec {
|
||||
packages.tree-sitter-nixshell = pkgs.callPackage ./default.nix { };
|
||||
defaultPackage = packages.tree-sitter-nixshell;
|
||||
|
||||
devShells.default = pkgs.callPackage ./shell.nix { };
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user