Sorry if this is obvious I am learning nix and struggling to understand how to do this.
I want to install my language servers and package them with my neovim package and then path them using mkWrapper or something. I’ve tried writting a hook but it doesn’t appear to run.
Although I believe you could simply also add these to your user packages if you’re willing to make them available everywhere in your user’s environment.
users.users.your-username-goes-here.packages = with pkgs; [
# Language servers
rnix-lsp
haskell-language-server
sumneko-lua-language-server
elmPackages.elm-language-server
];
I don’t want to lead you astray since I haven’t needed to wrap neovim myself but I’ll just mention that your postInstall from before your edit seemed pretty close!
I often find it helpful to search github with language:nix. E.g. some searches like these might turn up something helpful for you