nixos/pkgs/helix.nix

48 lines
761 B
Nix

{
lib,
pkgs,
inputs,
...
}:
let
helix = inputs.helix.packages."${pkgs.system}".default;
runtimeInputs = (
with pkgs;
[
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
lldb
rust-analyzer
nil
]
);
in
pkgs.symlinkJoin {
name = "helix-wrapped";
paths = [ helix ];
inherit (helix) meta;
buildInputs = [
pkgs.makeWrapper
];
postBuild = ''
wrapProgram $out/bin/hx \
--suffix PATH : ${lib.makeBinPath runtimeInputs}
'';
}