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:
Profpatsch
2020-12-29 13:02:38 +01:00
parent a32c5d90e7
commit d2988dac8e
2 changed files with 65 additions and 57 deletions
@@ -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; });