overlays: remove tree-sitter overlay

has already been merged into upstream nixpkgs
This commit is contained in:
LavaDesu 2021-11-21 16:15:30 +07:00
parent 2dfb51820b
commit ed5c719ff7
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 0 additions and 31 deletions

View file

@ -6,7 +6,6 @@ builtins.map (path: import path) [
./picom.nix
./polybar.nix
./transcrypt.nix
./tree-sitter.nix
./winetricks.nix
./xinit.nix
]

View file

@ -1,30 +0,0 @@
self: super:
let
lib = super.lib;
stdenv = super.stdenv;
in {
tree-sitter = super.tree-sitter.overrideAttrs(o: {
passthru = o.passthru // {
withPlugins = grammarFn:
let
grammars = grammarFn o.passthru.builtGrammars;
in
super.linkFarm "grammars"
(map
(drv:
let
name = lib.strings.getName drv;
in
{
name =
(lib.strings.replaceStrings ["-"] ["_"]
(lib.strings.removePrefix "tree-sitter-"
(lib.strings.removeSuffix "-grammar" name)))
+ stdenv.hostPlatform.extensions.sharedLibrary;
path = "${drv}/parser";
}
)
grammars);
};
});
}