diff --git a/pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix b/pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix index 124f49cfd93c..b967afe3b921 100644 --- a/pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix +++ b/pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix @@ -37,6 +37,9 @@ let buildFeatures = [ "luajit" ]; + # Allow undefined symbols on Darwin - they will be provided by Neovim's LuaJIT runtime + env.RUSTFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-C link-arg=-undefined -C link-arg=dynamic_lookup"; + checkFlags = [ # Disabled because they access the network. "--skip=test_hf" diff --git a/pkgs/applications/editors/vim/plugins/non-generated/blink-cmp/default.nix b/pkgs/applications/editors/vim/plugins/non-generated/blink-cmp/default.nix index b14b26f9290a..62309d6d727d 100644 --- a/pkgs/applications/editors/vim/plugins/non-generated/blink-cmp/default.nix +++ b/pkgs/applications/editors/vim/plugins/non-generated/blink-cmp/default.nix @@ -26,6 +26,8 @@ let env = { # TODO: remove this if plugin stops using nightly rust RUSTC_BOOTSTRAP = true; + # Allow undefined symbols on Darwin - they will be provided by Neovim's LuaJIT runtime + RUSTFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-C link-arg=-undefined -C link-arg=dynamic_lookup"; }; }; in diff --git a/pkgs/applications/editors/vim/plugins/non-generated/blink-pairs/default.nix b/pkgs/applications/editors/vim/plugins/non-generated/blink-pairs/default.nix index 52ac17aaf698..43a2bbc54c0b 100644 --- a/pkgs/applications/editors/vim/plugins/non-generated/blink-pairs/default.nix +++ b/pkgs/applications/editors/vim/plugins/non-generated/blink-pairs/default.nix @@ -23,7 +23,12 @@ let cargoHash = "sha256-Cn9zRsQkBwaKbBD/JEpFMBOF6CBZTDx7fQa6Aoic4YU="; - env.RUSTC_BOOTSTRAP = 1; + env = { + RUSTC_BOOTSTRAP = 1; + + # Allow undefined symbols on Darwin - they will be provided by Neovim's LuaJIT runtime + RUSTFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-C link-arg=-undefined -C link-arg=dynamic_lookup"; + }; # NOTE: Disabled upstream too doCheck = false; diff --git a/pkgs/applications/editors/vim/plugins/non-generated/codesnap-nvim/default.nix b/pkgs/applications/editors/vim/plugins/non-generated/codesnap-nvim/default.nix index cfe63d8b891c..0388ace01723 100644 --- a/pkgs/applications/editors/vim/plugins/non-generated/codesnap-nvim/default.nix +++ b/pkgs/applications/editors/vim/plugins/non-generated/codesnap-nvim/default.nix @@ -29,6 +29,9 @@ let rustPlatform.bindgenHook ]; + # Allow undefined symbols on Darwin - they will be provided by Neovim's LuaJIT runtime + env.RUSTFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-C link-arg=-undefined -C link-arg=dynamic_lookup"; + buildInputs = [ libuv.dev ]; diff --git a/pkgs/applications/editors/vim/plugins/non-generated/fff-nvim/default.nix b/pkgs/applications/editors/vim/plugins/non-generated/fff-nvim/default.nix index 8f2f04b5ce86..4c92849f07f6 100644 --- a/pkgs/applications/editors/vim/plugins/non-generated/fff-nvim/default.nix +++ b/pkgs/applications/editors/vim/plugins/non-generated/fff-nvim/default.nix @@ -2,11 +2,12 @@ lib, fetchFromGitHub, rustPlatform, - pkg-config, - perl, - openssl, - vimUtils, nix-update-script, + openssl, + perl, + pkg-config, + stdenv, + vimUtils, }: let version = "65aeacf-unstable-2025-11-03"; @@ -35,6 +36,9 @@ let RUSTC_BOOTSTRAP = 1; # We need rust unstable features OPENSSL_NO_VENDOR = true; + + # Allow undefined symbols on Darwin - they will be provided by Neovim's LuaJIT runtime + RUSTFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-C link-arg=-undefined -C link-arg=dynamic_lookup"; }; }; in