Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 45c711b2..8e501bbc 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