Move helix runtime inputs to hm extraPackages option

This commit is contained in:
ulic-youthlic 2025-06-09 10:47:34 +08:00
parent 11e14b01f9
commit 915256aa94
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
8 changed files with 67 additions and 84 deletions

View file

@ -1,87 +1,12 @@
{
lib,
inputs,
system,
callPackage,
symlinkJoin,
makeWrapper,
nixfmt-rfc-style,
idris2Packages,
lua-language-server,
bash-language-server,
shfmt,
hurl,
cmake-language-server,
kdlfmt,
rustfmt,
clang-tools,
libxml2,
typstyle,
pyright,
ruff,
gotools,
yaml-language-server,
taplo,
markdown-oxide,
marksman,
nixd,
deno,
alejandra,
vscode-langservers-extracted,
fish-lsp,
tailwindcss-language-server,
gopls,
golangci-lint-langserver,
tinymist,
delve,
lldb,
rust-analyzer,
# nil,
haskell-language-server,
neocmakelsp,
jdt-language-server,
zls,
}: let
inherit (inputs.helix.packages."${system}") helix;
runtime = callPackage ./runtime.nix {};
runtimeInputs = [
nixfmt-rfc-style
idris2Packages.idris2Lsp
lua-language-server
bash-language-server
shfmt
hurl
cmake-language-server
kdlfmt
rustfmt
clang-tools
libxml2
typstyle
pyright
ruff
gotools
yaml-language-server
taplo
markdown-oxide
marksman
nixd
deno
alejandra
vscode-langservers-extracted
fish-lsp
tailwindcss-language-server
gopls
golangci-lint-langserver
tinymist
delve
lldb
rust-analyzer
# nil
haskell-language-server
neocmakelsp
jdt-language-server
zls
];
in
symlinkJoin {
name = "helix-wrapped";
@ -92,7 +17,6 @@ in
];
postBuild = ''
wrapProgram $out/bin/hx \
--suffix PATH : ${lib.makeBinPath runtimeInputs} \
--set HELIX_RUNTIME ${runtime}
'';
}