nix-community / nixvim

Configure Neovim with Nix! [maintainers=@GaetanLepage, @traxys, @mattsturgeon, @khaneliman]
https://nix-community.github.io/nixvim
MIT License
1.79k stars 280 forks source link

Support for Nix 24.05? #1551

Closed Azeirah closed 5 months ago

Azeirah commented 6 months ago

I'm not using nixpkgs unstable, and I just installed nixOS on my system, so I have 24.05.

According to the readme, I need to specify the nixpkgs version in the flake, but I'm getting an error that it cannot be found (because the branch doesn't exist!)

sudo nixos-rebuild test --flake /etc/nixos#default       
error:
       … while updating the lock file of flake 'path:/etc/nixos?lastModified=1716405479&narHash=sha256-jVjsvFjxUMz6Pao9QfsG2pqPEArHARpB2ILTUVqdZ6U%3D'

       … while updating the flake input 'nixvim'

       … while fetching the input 'github:nix-community/nixvim/nixos-24.05'

       error: unable to download 'https://api.github.com/repos/nix-community/nixvim/commits/nixos-24.05': HTTP error 422

       response body:

       {
         "message": "No commit found for SHA: nixos-24.05",
         "documentation_url": "https://docs.github.com/rest/commits/commits#get-a-commit"
       }
MattSturgeon commented 6 months ago

We've not yet made a 24.05 branch. I'm sure we will soon.

In the meantime, you could build a standalone nixvim derivation (using unstable) as a workaround.

EDIT: for now, unstable and 24.05 are probably close enough to each other that you could get away with using the main nixvim branch with 24.05 (I haven't tested this).

nixos-discourse commented 5 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/getting-error-rnix-lsp-has-been-removed-as-it-is-unmaintained-while-trying-to-update-from-23-11-to-24-05/46280/6

GaetanLepage commented 5 months ago

The stable branch has been created: https://github.com/nix-community/nixvim/tree/nixos-24.05