3
0
Fork 0
forked from mirrors/nixpkgs

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
, 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" ])