helix: 0.6.0 -> 22.03

This commit is contained in:
Daniel Thwaites 2022-04-04 11:12:33 +01:00 committed by Yt
parent c4bfcbfbfe
commit fe982a28d0

View file

@ -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 ];
};
}