diff --git a/pkgs/applications/editors/helix/default.nix b/pkgs/applications/editors/helix/default.nix index 6cc5714fb83f..78731ab333e1 100644 --- a/pkgs/applications/editors/helix/default.nix +++ b/pkgs/applications/editors/helix/default.nix @@ -2,17 +2,17 @@ rustPlatform.buildRustPackage rec { pname = "helix"; - version = "0.6.0"; + version = "22.03"; src = fetchFromGitHub { owner = "helix-editor"; repo = pname; - rev = "v${version}"; + rev = version; fetchSubmodules = true; - sha256 = "sha256-d/USOtcPLjdgzN7TBCouBRmoSDH5LZD4R5Qq7lUrWZw="; + sha256 = "anUYKgr61QQmdraSYpvFY/2sG5hkN3a2MwplNZMEyfI="; }; - cargoSha256 = "sha256-/EATU7HsGNB35YOBp8sofbPd1nl4d3Ggj1ay3QuHkCI="; + cargoSha256 = "zJQ+KvO+6iUIb0eJ+LnMbitxaqTxfqgu7XXj3j0GiX4="; nativeBuildInputs = [ makeWrapper ]; @@ -24,11 +24,16 @@ rustPlatform.buildRustPackage rec { wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime ''; + # This tries to fetch the tree-sitter grammars over the Internet: + # https://github.com/helix-editor/helix/blob/f8c83f98859fd618980141eb95e7927dcdf074d7/helix-loader/src/grammar.rs#L140-L185 + # TODO: Download the grammars through Nix so that they can be enabled. + HELIX_DISABLE_AUTO_GRAMMAR_BUILD = true; + meta = with lib; { description = "A post-modern modal text editor"; homepage = "https://helix-editor.com"; license = licenses.mpl20; mainProgram = "hx"; - maintainers = with maintainers; [ yusdacra ]; + maintainers = with maintainers; [ danth yusdacra ]; }; }