tree-sitter: move to by-name (#513355)
This commit is contained in:
@@ -551,7 +551,6 @@
|
||||
- pkgs/by-name/*/*tree-sitter*/**/*
|
||||
- pkgs/by-name/ne/neovim-unwrapped/treesitter-parsers.nix
|
||||
- pkgs/development/python-modules/*tree-sitter*/**/*
|
||||
- pkgs/development/tools/parsing/tree-sitter/**/*
|
||||
|
||||
"6.topic: updaters":
|
||||
- any:
|
||||
|
||||
+1
-2
@@ -40,7 +40,7 @@ This will expand to an element in `pkgs.tree-sitter.grammars` at build time:
|
||||
}
|
||||
```
|
||||
|
||||
Each entry is passed to [buildGrammar](../build-grammar.nix), which in turn populates `pkgs.tree-sitter-grammars`.
|
||||
Each entry is passed to [buildGrammar](build-grammar.nix), which in turn populates `pkgs.tree-sitter-grammars`.
|
||||
|
||||
Attempt to build the new grammar: `nix-build -A tree-sitter-grammars.tree-sitter-latex`.
|
||||
This will fail due to the invalid hash.
|
||||
@@ -123,4 +123,3 @@ Or, to update all grammars:
|
||||
```shell
|
||||
nix-shell maintainers/scripts/update.nix --argstr path tree-sitter-grammars --argstr keep-going true
|
||||
```
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ lib.mapAttrs' (
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--override-filename"
|
||||
"pkgs/development/tools/parsing/tree-sitter/grammars/grammar-sources.nix"
|
||||
"pkgs/by-name/tr/tree-sitter/grammars/grammar-sources.nix"
|
||||
]
|
||||
++ (
|
||||
if (isUnstable attrs.version) then
|
||||
+1
-1
@@ -37,7 +37,7 @@ let
|
||||
};
|
||||
```
|
||||
*/
|
||||
buildGrammar = callPackage ./build-grammar.nix { };
|
||||
buildGrammar = callPackage ./grammars/build-grammar.nix { };
|
||||
|
||||
/**
|
||||
Attrset of grammar sources.
|
||||
@@ -5961,8 +5961,6 @@ with pkgs;
|
||||
|
||||
tflint-plugins = recurseIntoAttrs (callPackage ../development/tools/analysis/tflint-plugins { });
|
||||
|
||||
tree-sitter = makeOverridable (callPackage ../development/tools/parsing/tree-sitter) { };
|
||||
|
||||
tree-sitter-grammars = recurseIntoAttrs tree-sitter.builtGrammars;
|
||||
|
||||
uhdMinimal = uhd.override {
|
||||
|
||||
Reference in New Issue
Block a user