tree-sitter/grammar.nix: accept extra arguments
This commit is contained in:
parent
a14e29ab81
commit
c0c0a4ae2e
1 changed files with 5 additions and 5 deletions
|
@ -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" ])
|
||||||
|
|
Loading…
Reference in a new issue