nixos-config/pkgs/bck-nvim-tools.nix
2024-08-01 17:05:38 -04:00

41 lines
678 B
Nix

{ symlinkJoin
, runCommand
, black
, efm-langserver
, errcheck
, go
, gopls
, lua-language-server
, nil
, nodePackages
, pyright
, 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
efm-langserver
errcheck
go
gopls
lua-language-server
nil
pyright
vscode-langservers-extracted
yaml-language-server
(symlinkBin "${nodePackages.prettier}/bin/prettier")
(symlinkBin "${nodePackages.typescript-language-server}/bin/typescript-language-server")
];
}