tree-sitter/update: factor repo list into nix
We want the ability to add different orga repos as well, and that is a lot easier on the nix level.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ lib, stdenv
|
||||
, fetchgit, fetchFromGitHub, fetchurl
|
||||
, writeShellScript, runCommand, which
|
||||
, writeShellScript, runCommand, which, formats
|
||||
, rustPlatform, jq, nix-prefetch-git, xe, curl, emscripten
|
||||
, Security
|
||||
, callPackage
|
||||
@@ -29,7 +29,7 @@ let
|
||||
};
|
||||
|
||||
update-all-grammars = import ./update.nix {
|
||||
inherit writeShellScript nix-prefetch-git curl jq xe src;
|
||||
inherit writeShellScript nix-prefetch-git curl jq xe src formats;
|
||||
};
|
||||
|
||||
fetchGrammar = (v: fetchgit {inherit (v) url rev sha256 fetchSubmodules; });
|
||||
|
||||
Reference in New Issue
Block a user