8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
15 rev = "release-${version}";
16 hash = "sha256-nvLo8bWjiLJjM+pZArMKu4gjEFPrlqDI/Kf+W8fs9L8=";
19 cargoHash = "sha256-2qrfw/QVfZZ3GTBalNne4QYQsI+JZBf5FdLJD84gnS4=";
21 nativeBuildInputs = [ installShellFiles ];
24 # disable fetching and building of tree-sitter grammars in the helix-term build.rs
25 HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1";
26 HELIX_DEFAULT_RUNTIME = "${placeholder "out"}/lib/runtime";
31 cp -r runtime $out/lib
32 # copy tree-sitter grammars from helix package
33 # TODO: build it from source instead
34 cp -r ${helix}/lib/runtime/grammars/* $out/lib/runtime/grammars/
35 installShellCompletion contrib/completion/hx.{bash,fish,zsh}
36 mkdir -p $out/share/{applications,icons/hicolor/256x256/apps}
37 cp contrib/Helix.desktop $out/share/applications
38 cp contrib/helix.png $out/share/icons/hicolor/256x256/apps
42 description = "Post-modern modal text editor, with vim keybindings";
43 homepage = "https://github.com/usagi-flow/evil-helix";
44 license = lib.licenses.mpl20;
46 maintainers = with lib.maintainers; [ thiagokokada ];