forked from mirrors/nixpkgs
tree-sitter/grammar.nix: accept extra arguments
This commit is contained in:
parent
a14e29ab81
commit
c0c0a4ae2e
|
@ -14,12 +14,12 @@
|
|||
# source for the language grammar
|
||||
, source
|
||||
, location ? null
|
||||
, generate ? false,
|
||||
}:
|
||||
, generate ? false
|
||||
, ...
|
||||
}@args:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation ({
|
||||
pname = "${language}-grammar";
|
||||
inherit version;
|
||||
|
||||
src = source;
|
||||
|
||||
|
@ -59,4 +59,4 @@ stdenv.mkDerivation rec {
|
|||
fi
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
} // removeAttrs args [ "language" "source" "location" "generate" ])
|
||||
|
|
Loading…
Reference in a new issue