nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

Support for Nix 24.05?

Open Azeirah opened this issue 1 year ago • 1 comments

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"
       }

Azeirah avatar May 22 '24 19:05 Azeirah

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).

MattSturgeon avatar May 22 '24 21:05 MattSturgeon

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

nixos-discourse avatar May 31 '24 22:05 nixos-discourse

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

GaetanLepage avatar Jun 06 '24 12:06 GaetanLepage