Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.5 KiB
Nix
53 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
helix,
|
|
installShellFiles,
|
|
nix-update-script,
|
|
rustPlatform,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (final: {
|
|
pname = "evil-helix";
|
|
version = "20250915";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "usagi-flow";
|
|
repo = "evil-helix";
|
|
tag = "release-${final.version}";
|
|
hash = "sha256-6kqKTZNS1RZwfxcFoa2uC7fUKcQ+KhT5KXusyCt59YQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-Mf0nrgMk1MlZkSyUN6mlM5lmTcrOHn3xBNzmVGtApEU=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
env = {
|
|
# disable fetching and building of tree-sitter grammars in the helix-term build.rs
|
|
HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1";
|
|
HELIX_DEFAULT_RUNTIME = "${placeholder "out"}/lib/runtime";
|
|
};
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib
|
|
cp -r runtime $out/lib
|
|
# copy tree-sitter grammars from helix package
|
|
# TODO: build it from source instead
|
|
cp -r ${helix}/lib/runtime/grammars/* $out/lib/runtime/grammars/
|
|
installShellCompletion contrib/completion/hx.{bash,fish,zsh}
|
|
mkdir -p $out/share/{applications,icons/hicolor/256x256/apps}
|
|
cp contrib/Helix.desktop $out/share/applications
|
|
cp contrib/helix.png $out/share/icons/hicolor/256x256/apps
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Post-modern modal text editor, with vim keybindings";
|
|
homepage = "https://github.com/usagi-flow/evil-helix";
|
|
license = lib.licenses.mpl20;
|
|
mainProgram = "hx";
|
|
maintainers = with lib.maintainers; [ thiagokokada ];
|
|
};
|
|
})
|