3
0
Fork 0
forked from mirrors/nixpkgs

tree-sitter: split arguments in library.nix & document

This commit is contained in:
Profpatsch 2020-12-13 06:54:25 +01:00
parent 5907bcadfa
commit cf81745404
2 changed files with 13 additions and 3 deletions

View file

@ -41,8 +41,10 @@ let
builtGrammars = let
change = name: grammar:
callPackage ./library.nix {
language = name; inherit version; source = fetchGrammar grammar;
callPackage ./library.nix {} {
language = name;
inherit version;
source = fetchGrammar grammar;
};
in
# typescript doesn't have parser.c in the same place as others

View file

@ -1,7 +1,15 @@
{ stdenv
, language
, tree-sitter
}:
# Build a parser grammar and put the resulting shared object in `$out/parser`
{
# language name
language
# version of tree-sitter
, version
# source for the language grammar
, source
}: