# Neovim's flake.nix moved to nix-community

**URL:** https://discourse.nixos.org/t/neovims-flake-nix-moved-to-nix-community/45887
**Category:** Announcements
**Created:** [May 23, 2024, 10:59pm UTC](https://discourse.nixos.org/t/neovims-flake-nix-moved-to-nix-community/45887 "2024-05-23T22:59:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![teto](https://discourse.nixos.org/user_avatar/discourse.nixos.org/teto/32/182_2.png) [@teto](https://discourse.nixos.org/u/teto)
#### Post date: [May 23, 2024, 10:59pm UTC](https://discourse.nixos.org/t/neovims-flake-nix-moved-to-nix-community/45887/1 "2024-05-23T22:59:51Z")

</div>

For the neovim users out there running neovim nightly via the flake.nix in the neovim repository, the flake is getting removed [build: remove nix flakes by dundargoc · Pull Request #28863 · neovim/neovim · GitHub](https://github.com/neovim/neovim/pull/28863) because it’s a maintainance burden unrelated to neovim.  
It got moved to the nix-community repo [feat: move neovim flake into the overlay itself by GaetanLepage · Pull Request #516 · nix-community/neovim-nightly-overlay · GitHub](https://github.com/nix-community/neovim-nightly-overlay/pull/516).

To update your flake.nix, replace ` inputs.neovim.url = "github:neovim/neovim?dir=contrib";` with `inputs.neovim.url = "github:nix-community/neovim-nightly-overlay";` followed by a `nix flake update neovim`. Please bear with us as we update documentation and iron out the details during the move.

This gives us more latitude to enrich that flake with for instance nightly versions of neovim plugins.

---

<div class="post-metadata">

### Author: ![ahmedelgabri](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ahmedelgabri/32/1317_2.png) [@ahmedelgabri](https://discourse.nixos.org/u/ahmedelgabri)
#### Post date: [May 24, 2024, 10:23am UTC](https://discourse.nixos.org/t/neovims-flake-nix-moved-to-nix-community/45887/2 "2024-05-24T10:23:27Z")

</div>

Would it still be possible to get the latest stable release and not a nightly version? Something like `"github:neovim/neovim?dir=contrib&ref=v0.10.0"` or the main focus for this flake is the nightly build only? I guess the answer is no, but I want to be sure.

---

<div class="post-metadata">

### Author: ![573](https://discourse.nixos.org/user_avatar/discourse.nixos.org/573/32/2640_2.png) [@573](https://discourse.nixos.org/u/573)
#### Post date: [May 24, 2024, 2:48pm UTC](https://discourse.nixos.org/t/neovims-flake-nix-moved-to-nix-community/45887/3 "2024-05-24T14:48:25Z")

</div>

You could use this [input](https://github.com/nix-community/neovim-nightly-overlay/blob/d659352f0a68717fa1d02391a74269067fccedf7/flake.nix#L19) and change the follows clause accordingly and with the same [(i. e.) consequences](https://github.com/nix-community/neovim-nightly-overlay/issues/310#issuecomment-1721059976) as before.

---

<div class="post-metadata">

### Author: ![teto](https://discourse.nixos.org/user_avatar/discourse.nixos.org/teto/32/182_2.png) [@teto](https://discourse.nixos.org/u/teto)
#### Post date: [May 25, 2024, 9:02pm UTC](https://discourse.nixos.org/t/neovims-flake-nix-moved-to-nix-community/45887/4 "2024-05-25T21:02:47Z")

</div>

stable releases are part of nixpkgs so you could use a revision from: [neovim | How to install with Nix or Devbox](https://www.nixhub.io/packages/neovim)

We could create tags matching neovim ones but I will defer the decision to @gaetanlepage , who is shaping up to become the more active maintainer.

---

<div class="post-metadata">

### Author: ![ahmedelgabri](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ahmedelgabri/32/1317_2.png) [@ahmedelgabri](https://discourse.nixos.org/u/ahmedelgabri)
#### Post date: [May 27, 2024, 12:23am UTC](https://discourse.nixos.org/t/neovims-flake-nix-moved-to-nix-community/45887/5 "2024-05-27T00:23:40Z")

</div>

> [@teto](#):
>
> stable releases are part of nixpkgs so you could use a revision from: [neovim | How to install with Nix or Devbox](https://www.nixhub.io/packages/neovim)

I understand, that’s what I’ll properly be doing, but in general, I had two (subjective) issues:

- Nixpkgs is slightly slower getting updated, so I assumed the flake inside neovim repo will always be up to date with every release (_This already won’t be the case anymore_)
- It seems that just by quickly scanning the package on nixpkgs, it has way more things (including patches) than the one in neovim, so I was sticking with the (official) package instead.

Overall, I have nothing against the change, I just wanted to understand if this would be an option.

---

<div class="post-metadata">

### Author: ![teto](https://discourse.nixos.org/user_avatar/discourse.nixos.org/teto/32/182_2.png) [@teto](https://discourse.nixos.org/u/teto)
#### Post date: [May 28, 2024, 1:39am UTC](https://discourse.nixos.org/t/neovims-flake-nix-moved-to-nix-community/45887/6 "2024-05-28T01:39:23Z")

</div>

> Nixpkgs is slightly slower getting updated

I think nixpkgs is pretty fast, last release had a PR ready hours before the official release (even though it was botched a bit). For it to reach the cache can take longer but we are talking days.

> It seems that just by quickly scanning the package on nixpkgs, it has way more things

That seems unlikely since the overlay is an override over the nixpkgs’ definition, e.g. it “updates” the nixpkgs neovim derivation.
