From 12523cd1269b89455cc3568756b4a1081b062561 Mon Sep 17 00:00:00 2001 From: Zhaith Izaliel Date: Mon, 26 May 2025 15:47:14 +0200 Subject: [PATCH] fix: fix support for grammar overlays and include predicate (#13603) (#13613) --- default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 45c711b27..8e501bbc8 100644 --- a/default.nix +++ b/default.nix @@ -6,6 +6,8 @@ installShellFiles, git, gitRev ? null, + grammarOverlays ? [], + includeGrammarIf ? _: true, }: let fs = lib.fileset; @@ -27,7 +29,7 @@ # that they reside in. It is built by calling the derivation in the # grammars.nix file, then taking the runtime directory in the git repo # and hooking symlinks up to it. - grammars = callPackage ./grammars.nix {}; + grammars = callPackage ./grammars.nix {inherit grammarOverlays includeGrammarIf;}; runtimeDir = runCommand "helix-runtime" {} '' mkdir -p $out ln -s ${./runtime}/* $out