mirror of
https://github.com/iofq/nvim-treesitter-main.git
synced 2026-01-23 01:15:17 -06:00
69 lines
1.7 KiB
Nix
69 lines
1.7 KiB
Nix
{
|
|
description = "nvim-treesitter main branch overlay";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
nvim-treesitter = {
|
|
url = "github:nvim-treesitter/nvim-treesitter/main";
|
|
flake = false;
|
|
};
|
|
nvim-treesitter-textobjects = {
|
|
url = "github:nvim-treesitter/nvim-treesitter-textobjects/main";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ self, ... }@inputs:
|
|
let
|
|
supportedSystems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
|
|
forEachSupportedSystem =
|
|
f:
|
|
inputs.nixpkgs.lib.genAttrs supportedSystems (
|
|
system:
|
|
f {
|
|
pkgs = import inputs.nixpkgs {
|
|
inherit system;
|
|
};
|
|
}
|
|
);
|
|
in
|
|
{
|
|
overlays = {
|
|
default = (import ./overlay.nix { inherit inputs; });
|
|
};
|
|
devShells = forEachSupportedSystem (
|
|
{ pkgs, ... }:
|
|
{
|
|
default = pkgs.mkShell {
|
|
packages = [
|
|
(import ./generate-parsers { inherit inputs pkgs; })
|
|
];
|
|
};
|
|
}
|
|
);
|
|
packages = forEachSupportedSystem (
|
|
{ pkgs, ... }:
|
|
let
|
|
pkgs' = import inputs.nixpkgs {
|
|
inherit (pkgs) system;
|
|
overlays = (pkgs.overlays or [ ]) ++ [
|
|
(import ./overlay.nix { inherit inputs; })
|
|
];
|
|
};
|
|
in
|
|
rec {
|
|
nvim-treesitter-textobjects = pkgs'.vimPlugins.nvim-treesitter-textobjects;
|
|
nvim-treesitter-unwrapped = pkgs'.vimPlugins.nvim-treesitter-unwrapped;
|
|
nvim-treesitter = pkgs'.vimPlugins.nvim-treesitter;
|
|
default = nvim-treesitter;
|
|
}
|
|
);
|
|
};
|
|
}
|