How to pin a specific version for neovim

Hi there, I’ve encountered a problem where I need pin neovim version to 0.9.5 for lunanvim(version 1.4.0) to work correctly.

But I’m not able to override it with something like

neovim-pinned = neovim.override (neovim-previous: {
  neovim-unwrapped = neovim-previous.neovim-unwrapped.override (neovim-unwrapped-previous: {
    version = "0.9.5";

because it says

       error: function 'legacyWrapper' called with unexpected argument 'neovim-unwrapped'

which is defined here

I intend to make this change into nixos/nixpkgs to fix a bug, so any help is much appreciated.

1 Like


1 Like