diff options
author | Daniel Thwaites <danthwaites30@btinternet.com> | 2022-04-04 11:12:33 +0100 |
---|---|---|
committer | Yt <raphael@megzari.com> | 2022-04-05 08:28:59 -0400 |
commit | fe982a28d0d101bbf4d61fbecdea86de8f17c020 (patch) | |
tree | 4dbd4bf79c1d972ab685265d865f6f1a0ab55f5b /pkgs/applications/editors/helix | |
parent | c4bfcbfbfe06adc4355c5e2a74a712317793d154 (diff) |
helix: 0.6.0 -> 22.03
Diffstat (limited to 'pkgs/applications/editors/helix')
-rw-r--r-- | pkgs/applications/editors/helix/default.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/applications/editors/helix/default.nix b/pkgs/applications/editors/helix/default.nix index 6cc5714fb83fe..78731ab333e12 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 ]; }; } |