Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rnix removed because it is unmaintained #46

Open
pigeonhands opened this issue Aug 30, 2024 · 3 comments
Open

rnix removed because it is unmaintained #46

pigeonhands opened this issue Aug 30, 2024 · 3 comments

Comments

@pigeonhands
Copy link

pigeonhands commented Aug 30, 2024

Currently, editing a nix file gives an error about rnix being unmaintained

[ERROR][2024-08-30 13:12:42] .../vim/lsp/rpc.lua:770	"rpc"	"nix-shell"	"stderr"	"error:\n       
… while calling the 'derivationStrict' builtin\n\n         at /builtin/derivation.nix:9:12: (source not available)\n\n       
… while evaluating derivation 'shell'\n         whose name attribute is located at /nix/store/5z81la6av4j0ckp0w1949lxiwjyyykks-source/pkgs/stdenv/generic/make-derivation.nix:333:7\n\n       
… while evaluating attribute 'buildInputs' of derivation 'shell'\n\n         at /nix/store/5z81la6av4j0ckp0w1949lxiwjyyykks-source/pkgs/stdenv/generic/make-derivation.nix:380:7:\n\n          379|       depsHostHost                = elemAt (elemAt dependencies 1) 0;\n          380|       buildInputs                 = elemAt (elemAt dependencies 1) 1;\n             |       ^\n          381|       depsTargetTarget            = elemAt (elemAt dependencies 2) 0;\n\n       
error: 'rnix-lsp' has been removed as it is unmaintained\n"

Also means formatting does not work currently. Is there a way to manually specify a lsp/formatter and completely override preferred_servers? nixfmt may be a replacement.

@dundalek
Copy link
Owner

Thanks for the report. I pushed an update removing rnix.

For formatting perhaps efm could be configured to use nixfmt or maybe nil might have a formatter option.

@pigeonhands
Copy link
Author

pigeonhands commented Aug 30, 2024

Maybe an option to avoid lsp servers being removed and breaking setups is to have a flake.nix in this repository re-exporting nixpkgs derivations for the supported lsp servers. Then you could default the lsp execute to nix run ./lazy-nvim-install-dir#<lsp-server> --command <lsp-server>

Though to actually pin the nixpkgs to a known version means it not being the same as the system nixpkgs and causing some duplication on the system. There may be a way around that with overrides?

@dundalek
Copy link
Owner

dundalek commented Sep 4, 2024

In my view it is unfortunate when things get removed, but if a package is not considered to be worthy for nixpkgs, then I probably don't want to put myself into a position to maintain it.

In case you find an alternative configuration, we could add it as a recipe to docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants