From 876a05aa448239e421a7c6b4c799fc469fe0200d Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 23 Nov 2025 12:41:21 -0600 Subject: [PATCH] vimPlugins.blink-cmp: fix darwin build Follow the linker args that upstream uses for darwin https://github.com/saghen/blink.cmp/blob/main/.cargo/config.toml Signed-off-by: Austin Horstman --- .../editors/vim/plugins/non-generated/blink-cmp/default.nix | 2 ++ 1 file changed, 2 insertions(+) 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