vimPlugins.moveline-nvim: fix darwin support

This commit is contained in:
Austin Horstman
2025-01-12 16:28:44 -06:00
parent 0581f46777
commit 2749f3be5a
@@ -3,6 +3,7 @@
fetchFromGitHub,
rustPlatform,
vimUtils,
stdenv,
}:
let
version = "0.3.1-unstable-2023-07-06";
@@ -30,11 +31,18 @@ vimUtils.buildVimPlugin {
inherit src version;
pname = "moveline-nvim";
preInstall = ''
mkdir -p lua
ln -s ${moveline-lib}/lib/libmoveline.so lua/moveline.so
'';
preInstall =
# https://github.com/neovim/neovim/issues/21749
# Need to still copy generated library as `so` because neovim doesn't check for `dylib`
let
ext = stdenv.hostPlatform.extensions.sharedLibrary;
in
''
mkdir -p lua
ln -s ${moveline-lib}/lib/libmoveline${ext} lua/moveline.so
'';
# Plugin generates a non lua file output that needs to be manually required
nvimRequireCheck = "moveline";
meta = {
@@ -42,8 +50,5 @@ vimUtils.buildVimPlugin {
homepage = "https://github.com/willothy/moveline.nvim";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ redxtech ];
badPlatforms = [
lib.systems.inspect.patterns.isDarwin
];
};
}