helix: rework

This commit is contained in:
Bloxx12 2025-06-04 08:26:52 +02:00
commit 2239e0e983
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
5 changed files with 55 additions and 22 deletions

View file

@ -2,6 +2,8 @@
symlinkJoin,
makeWrapper,
callPackage,
fetchzip,
rustPlatform,
alejandra,
basedpyright,
bash-language-server,
@ -21,7 +23,6 @@
lazygit,
lib,
lldb_19,
nil,
nixd,
ruff,
rust-analyzer,
@ -40,6 +41,21 @@
}: let
inherit (lib.meta) getExe;
custom-helix = helix.overrideAttrs (_: rec {
version = "25.06.1";
src = fetchzip {
url = "https://github.com/bloxx12/helix/releases/download/${version}/helix-${version}-source.tar.xz";
hash = "sha256-941moaBUF+aGsbFapK1cp5+NFdecSfRCTdnVUtkDQps=";
stripRoot = false;
};
doInstallCheck = false;
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (custom-helix) src;
hash = "sha256-w07ZV1tR3lzYz4N+hI9alvFp0AHCcsItPRhVt9Sluo8=";
};
});
toml = formats.toml {};
helix-languages = callPackage ./languages.nix {inherit lib;};
@ -116,7 +132,7 @@
wrapped-helix = symlinkJoin {
name = "helix-wrapped";
paths = [
helix
custom-helix
# Bash
bash-language-server
@ -128,8 +144,7 @@
lldb_19
# Markdown
taplo
# Nix
nil
nixd
rust-analyzer
rustfmt

View file

@ -1,22 +1,25 @@
{
fetchFromGitHub,
rustPlatform,
alejandra,
basedpyright,
bash-language-server,
clang-tools,
cmake-format,
cmake-language-server,
deadnix,
deno,
dprint,
formats,
gdb,
kdePackages,
lib,
nil,
ruff,
shfmt,
kdePackages,
simple-completion-language-server,
typescript-language-server,
vscode-langservers-extracted,
simple-completion-language-server,
zls,
...
}: let
@ -24,6 +27,22 @@
toml = formats.toml {};
# a newer nil version, for pipes support.
newer-nil = nil.overrideAttrs (_: {
version = "unstable-02-06-2025";
src = fetchFromGitHub {
owner = "oxalica";
repo = "nil";
rev = "577d160da311cc7f5042038456a0713e9863d09e";
hash = "sha256-ggXU3RHv6NgWw+vc+HO4/9n0GPufhTIUjVuLci8Za8c=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (newer-nil) src;
hash = "sha256-uZsLlFU9GKLvFllF7Kf5Q7HfN26KQojf4rvOb9p7Rjs=";
};
});
helix-languages = {
language = let
mark = lang: {
@ -186,10 +205,13 @@
};
nil = {
command = getExe nil;
command = getExe newer-nil;
# alejandro
config.nil.formatting.command = ["${getExe alejandra}" "-q"];
};
deadnix = {
command = getExe deadnix;
};
scls = {
command = getExe simple-completion-language-server;