tree-sitter/grammar.nix: accept extra arguments

This commit is contained in:
figsoda 2022-11-17 23:15:27 -05:00
parent a14e29ab81
commit c0c0a4ae2e

View file

@ -14,12 +14,12 @@
# source for the language grammar # source for the language grammar
, source , source
, location ? null , location ? null
, generate ? false, , generate ? false
}: , ...
}@args:
stdenv.mkDerivation rec { stdenv.mkDerivation ({
pname = "${language}-grammar"; pname = "${language}-grammar";
inherit version;
src = source; src = source;
@ -59,4 +59,4 @@ stdenv.mkDerivation rec {
fi fi
runHook postInstall runHook postInstall
''; '';
} } // removeAttrs args [ "language" "source" "location" "generate" ])