summary refs log tree commit diff
path: root/pkgs/development/tools/parsing/tree-sitter/default.nix
diff options
context:
space:
mode:
authorJosé Luis Lafuente <jl@lafuente.me>2022-01-11 21:12:33 +0100
committerProfpatsch <mail@profpatsch.de>2022-01-12 23:15:28 +0100
commit5321a6b82afca8980c2faf923c2713d3dc1ca25c (patch)
tree518688aa73bc7ef78ea4a399b12a401378c726da /pkgs/development/tools/parsing/tree-sitter/default.nix
parent08aefdc2cad6c07fdae13abd23687570c83cec62 (diff)
downloadnixpkgs-5321a6b82afca8980c2faf923c2713d3dc1ca25c.tar
nixpkgs-5321a6b82afca8980c2faf923c2713d3dc1ca25c.tar.gz
nixpkgs-5321a6b82afca8980c2faf923c2713d3dc1ca25c.tar.bz2
nixpkgs-5321a6b82afca8980c2faf923c2713d3dc1ca25c.tar.lz
nixpkgs-5321a6b82afca8980c2faf923c2713d3dc1ca25c.tar.xz
nixpkgs-5321a6b82afca8980c2faf923c2713d3dc1ca25c.tar.zst
nixpkgs-5321a6b82afca8980c2faf923c2713d3dc1ca25c.zip
tree-sitter updater: use GITHUB_TOKEN if present
The updater makes a lot of requets to the github API, which is rate
limited. We can do more requets if we are authenticated
Diffstat (limited to 'pkgs/development/tools/parsing/tree-sitter/default.nix')
-rw-r--r--pkgs/development/tools/parsing/tree-sitter/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/tools/parsing/tree-sitter/default.nix b/pkgs/development/tools/parsing/tree-sitter/default.nix
index b56cd98da63..9495e331bd1 100644
--- a/pkgs/development/tools/parsing/tree-sitter/default.nix
+++ b/pkgs/development/tools/parsing/tree-sitter/default.nix
@@ -27,7 +27,8 @@ let
   # to update:
   # 1) change all these hashes
   # 2) nix-build -A tree-sitter.updater.update-all-grammars
-  # 3) run the ./result script that is output by that (it updates ./grammars)
+  # 3) OPTIONAL: Set GITHUB_TOKEN env variable to avoid api rate limit
+  # 4) run the ./result script that is output by that (it updates ./grammars)
   version = "0.20.1";
   sha256 = "sha256-JKbL05hFWI0jhAnRT9D0SWCoRPFqoMD4+LQQ1zyWc7g=";
   cargoSha256 = "sha256-64O+3GrDqhRGth20B2/+jNDYSnwvT3SqYVqYNthiCB0=";