helix: 0.6.0 -> 22.03
This commit is contained in:
parent
c4bfcbfbfe
commit
fe982a28d0
@ -2,17 +2,17 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "helix";
|
pname = "helix";
|
||||||
version = "0.6.0";
|
version = "22.03";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "helix-editor";
|
owner = "helix-editor";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = version;
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
sha256 = "sha256-d/USOtcPLjdgzN7TBCouBRmoSDH5LZD4R5Qq7lUrWZw=";
|
sha256 = "anUYKgr61QQmdraSYpvFY/2sG5hkN3a2MwplNZMEyfI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-/EATU7HsGNB35YOBp8sofbPd1nl4d3Ggj1ay3QuHkCI=";
|
cargoSha256 = "zJQ+KvO+6iUIb0eJ+LnMbitxaqTxfqgu7XXj3j0GiX4=";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
@ -24,11 +24,16 @@ rustPlatform.buildRustPackage rec {
|
|||||||
wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime
|
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; {
|
meta = with lib; {
|
||||||
description = "A post-modern modal text editor";
|
description = "A post-modern modal text editor";
|
||||||
homepage = "https://helix-editor.com";
|
homepage = "https://helix-editor.com";
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
mainProgram = "hx";
|
mainProgram = "hx";
|
||||||
maintainers = with maintainers; [ yusdacra ];
|
maintainers = with maintainers; [ danth yusdacra ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user