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.

https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs

1 Like

image

https://lazamar.co.uk/nix-versions/?package=neovim&version=0.9.5&fullName=neovim-0.9.5&keyName=neovim&revision=e89cf1c932006531f454de7d652163a9a5c86668&channel=nixpkgs-unstable#instructions

1 Like