helix: 0.6.0 -> 22.03
This commit is contained in:
parent
c4bfcbfbfe
commit
fe982a28d0
1 changed files with 10 additions and 5 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue