nixos-config/pkgs/bck-nvim-tools.nix
2024-09-16 02:30:11 -04:00

49 lines
770 B
Nix

{ symlinkJoin
, runCommand
, black
, cargo
, efm-langserver
, errcheck
, go
, gopls
, lua-language-server
, nil
, nodePackages
, pyright
, rust-analyzer
, rustc
, rustfmt
, vscode-langservers-extracted
, yaml-language-server
}:
let
symlinkBin = path: runCommand "symlinkBin" { } ''
mkdir -p $out/bin
ln -s "${path}" $out/bin/
'';
in
symlinkJoin {
name = "bck-nvim-tools";
paths = [
black
cargo
efm-langserver
errcheck
go
gopls
lua-language-server
nil
pyright
rust-analyzer
rustc
rustfmt
vscode-langservers-extracted
yaml-language-server
(symlinkBin "${nodePackages.prettier}/bin/prettier")
(symlinkBin "${nodePackages.typescript-language-server}/bin/typescript-language-server")
];
}