From 95dd21fe6f80a7bb715f326a8d1603c0a6a614cc Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Wed, 15 Oct 2025 16:59:35 +0200 Subject: [PATCH] evil-helix: use helix's tree-sitter grammars built from source --- pkgs/by-name/ev/evil-helix/package.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/by-name/ev/evil-helix/package.nix b/pkgs/by-name/ev/evil-helix/package.nix index 692fe89ddeda..1a4f783bc4d4 100644 --- a/pkgs/by-name/ev/evil-helix/package.nix +++ b/pkgs/by-name/ev/evil-helix/package.nix @@ -25,15 +25,11 @@ rustPlatform.buildRustPackage (finalAttrs: { env = { # disable fetching and building of tree-sitter grammars in the helix-term build.rs HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1"; - HELIX_DEFAULT_RUNTIME = "${placeholder "out"}/lib/runtime"; + HELIX_DEFAULT_RUNTIME = helix.runtime; }; postInstall = '' mkdir -p $out/lib - cp -r runtime $out/lib - # copy tree-sitter grammars from helix package - # TODO: build it from source instead - cp -r ${helix}/lib/runtime/grammars/* $out/lib/runtime/grammars/ installShellCompletion contrib/completion/hx.{bash,fish,zsh} mkdir -p $out/share/{applications,icons/hicolor/256x256/apps} cp contrib/Helix.desktop $out/share/applications