Unverified Commit 27cbd487 authored by Matthieu Coudron's avatar Matthieu Coudron Committed by GitHub
Browse files

tree-sitter: move to by-name (#513355)

parents 3c7fb22b c9e6cd24
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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
Loading