From beb2ae6c1b358cb32da5b9dbb8310e25f0465880 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Tue, 2 Jun 2026 15:40:48 +0200 Subject: [PATCH 1/2] steelix: add patch for correct grammar extension on darwin --- pkgs/by-name/st/steelix/package.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/by-name/st/steelix/package.nix b/pkgs/by-name/st/steelix/package.nix index fdaf8740516f..f87899504ad7 100644 --- a/pkgs/by-name/st/steelix/package.nix +++ b/pkgs/by-name/st/steelix/package.nix @@ -1,5 +1,6 @@ { fetchFromGitHub, + fetchpatch, helix, installShellFiles, lib, @@ -18,6 +19,21 @@ rustPlatform.buildRustPackage (finalAttrs: { hash = "sha256-qAUODNxHM9K6CrRCFgfBcbqzRd+YHiWn9fEfmIzrohA="; }; + # This fork is built from Helix master, whose loader expects tree-sitter + # grammars with the platform-native extension (`.dylib` on Darwin) since + # helix-editor/helix#14982. We reuse the grammars from `helix.runtime`, built + # from the last Helix *release*, which still names them `.so` on Darwin, so + # revert that commit to make the loader look for `.so`. Remove once a Helix + # release ships #14982 and nixpkgs' grammars switch to `.dylib`. + patches = [ + (fetchpatch { + name = "revert-dylib-grammar-extension.patch"; + url = "https://github.com/helix-editor/helix/commit/430914b298a32653ab1847fdfdf2177a002be04c.patch"; + revert = true; + hash = "sha256-4KUFppkso4/XwNU+mGIgLvl+mJXHZWkmaguYMy8oTyI="; + }) + ]; + cargoHash = "sha256-6bu8sIM4So3AbnHHYbh8uu+rEB4IjMQjDgh7/AkLQs0="; nativeBuildInputs = [ From 8d06e58e43f3dd4f76202c61716255d10b9303a0 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Tue, 2 Jun 2026 15:41:03 +0200 Subject: [PATCH 2/2] steelix: add @aciceri to maintainers --- pkgs/by-name/st/steelix/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/st/steelix/package.nix b/pkgs/by-name/st/steelix/package.nix index f87899504ad7..872fa14bf980 100644 --- a/pkgs/by-name/st/steelix/package.nix +++ b/pkgs/by-name/st/steelix/package.nix @@ -73,6 +73,7 @@ rustPlatform.buildRustPackage (finalAttrs: { license = lib.licenses.mpl20; mainProgram = "hx"; maintainers = with lib.maintainers; [ + aciceri Ra77a3l3-jar ]; };