2025-01-17 14:35:18 +08:00
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
inputs,
|
|
|
|
|
...
|
2025-02-05 00:07:13 +08:00
|
|
|
}@args:
|
2025-01-17 18:01:19 +08:00
|
|
|
let
|
2025-03-07 00:26:56 +08:00
|
|
|
inherit (inputs.helix.packages."${pkgs.system}") helix;
|
|
|
|
|
# helix-core = helix-unwrapped.overrideAttrs {
|
|
|
|
|
# HELIX_DEFAULT_RUNTIME = "${grammarRuntime}";
|
|
|
|
|
# };
|
|
|
|
|
# helix-wrapped = (helix.override grammarConfig).passthru.wrapper helix-core;
|
|
|
|
|
# grammars = import ./grammars args;
|
|
|
|
|
# grammarOverlays = grammars.overlays;
|
|
|
|
|
# grammarRuntime = grammars.runtime;
|
|
|
|
|
# grammarConfig = {
|
|
|
|
|
# inherit grammarOverlays;
|
|
|
|
|
# };
|
2025-01-17 18:01:19 +08:00
|
|
|
runtimeInputs = (
|
|
|
|
|
with pkgs;
|
|
|
|
|
[
|
2025-02-05 00:07:13 +08:00
|
|
|
idris2Packages.idris2Lsp
|
2025-02-01 23:30:29 +08:00
|
|
|
lua-language-server
|
|
|
|
|
bash-language-server
|
|
|
|
|
hurl
|
2025-01-25 20:26:57 +08:00
|
|
|
cmake-language-server
|
2025-01-25 17:14:03 +08:00
|
|
|
kdlfmt
|
2025-01-17 18:01:19 +08:00
|
|
|
rustfmt
|
|
|
|
|
clang-tools
|
|
|
|
|
libxml2
|
|
|
|
|
typstyle
|
|
|
|
|
pyright
|
|
|
|
|
ruff
|
|
|
|
|
gotools
|
|
|
|
|
yaml-language-server
|
|
|
|
|
taplo
|
|
|
|
|
markdown-oxide
|
|
|
|
|
nixd
|
|
|
|
|
deno
|
|
|
|
|
nixfmt-rfc-style
|
|
|
|
|
vscode-langservers-extracted
|
|
|
|
|
fish-lsp
|
|
|
|
|
gopls
|
|
|
|
|
golangci-lint-langserver
|
|
|
|
|
tinymist
|
|
|
|
|
delve
|
2025-02-14 15:04:49 +08:00
|
|
|
lldb
|
2025-01-17 18:01:19 +08:00
|
|
|
rust-analyzer
|
|
|
|
|
nil
|
2025-01-18 12:51:02 +08:00
|
|
|
haskell-language-server
|
2025-01-25 20:26:57 +08:00
|
|
|
neocmakelsp
|
2025-01-17 18:01:19 +08:00
|
|
|
]
|
|
|
|
|
);
|
|
|
|
|
in
|
|
|
|
|
pkgs.symlinkJoin {
|
2025-03-07 00:26:56 +08:00
|
|
|
# pname = "helix-wrapped";
|
|
|
|
|
# version = helix.version;
|
|
|
|
|
name = "helix-wrapped";
|
|
|
|
|
paths = [ helix ];
|
|
|
|
|
inherit (helix) meta;
|
2025-01-17 18:01:19 +08:00
|
|
|
buildInputs = [
|
|
|
|
|
pkgs.makeWrapper
|
|
|
|
|
];
|
|
|
|
|
postBuild = ''
|
|
|
|
|
wrapProgram $out/bin/hx \
|
|
|
|
|
--suffix PATH : ${lib.makeBinPath runtimeInputs}
|
|
|
|
|
'';
|
|
|
|
|
}
|