From c0c0a4ae2e67420c9b99b39a9ecfd4fac9fc8d95 Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 17 Nov 2022 23:15:27 -0500 Subject: [PATCH] tree-sitter/grammar.nix: accept extra arguments --- pkgs/development/tools/parsing/tree-sitter/grammar.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/parsing/tree-sitter/grammar.nix b/pkgs/development/tools/parsing/tree-sitter/grammar.nix index 0debac64393c..e819a55eef37 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammar.nix +++ b/pkgs/development/tools/parsing/tree-sitter/grammar.nix @@ -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" ])