overlays: remove tree-sitter overlay
has already been merged into upstream nixpkgs
This commit is contained in:
parent
2dfb51820b
commit
ed5c719ff7
2 changed files with 0 additions and 31 deletions
|
|
@ -6,7 +6,6 @@ builtins.map (path: import path) [
|
||||||
./picom.nix
|
./picom.nix
|
||||||
./polybar.nix
|
./polybar.nix
|
||||||
./transcrypt.nix
|
./transcrypt.nix
|
||||||
./tree-sitter.nix
|
|
||||||
./winetricks.nix
|
./winetricks.nix
|
||||||
./xinit.nix
|
./xinit.nix
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -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);
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue