neovim-unwrapped: move overrides to package.nix

This commit is contained in:
Aliaksandr
2026-01-31 19:43:13 +02:00
parent c7dc1a80c0
commit af1942b10a
2 changed files with 8 additions and 5 deletions
+7 -1
View File
@@ -5,7 +5,8 @@
cmake,
gettext,
libuv,
lua,
lua5_1,
luajit,
pkg-config,
unibilium,
utf8proc,
@@ -25,6 +26,11 @@
fish ? null,
python3 ? null,
}:
let
lua = if lib.meta.availableOn stdenv.hostPlatform luajit then luajit else lua5_1;
in
stdenv.mkDerivation (
finalAttrs:
let
+1 -4
View File
@@ -11612,10 +11612,7 @@ with pkgs;
# more usecases when wrapping neovim. The interface is being actively worked on
# so expect breakage. use wrapNeovim instead if you want a stable alternative
wrapNeovimUnstable = callPackage ../applications/editors/neovim/wrapper.nix { };
wrapNeovim = neovim-unwrapped: makeOverridable (neovimUtils.legacyWrapper neovim-unwrapped);
neovim-unwrapped = callPackage ../by-name/ne/neovim-unwrapped/package.nix {
lua = if lib.meta.availableOn stdenv.hostPlatform luajit then luajit else lua5_1;
};
wrapNeovim = neovim-unwrapped: lib.makeOverridable (neovimUtils.legacyWrapper neovim-unwrapped);
neovimUtils = callPackage ../applications/editors/neovim/utils.nix {
lua = lua5_1;