From be044264eaecb02f7c6f69372cf5ef6e19a01028 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 9 Feb 2026 16:09:32 -0600 Subject: [PATCH] luaPackages.lux-lua: fix x86 darwin build Allow undefined symbols for mlua Signed-off-by: Austin Horstman --- pkgs/development/lua-modules/lux-lua.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/lua-modules/lux-lua.nix b/pkgs/development/lua-modules/lux-lua.nix index 316cdc021e31..2cf916e418f8 100644 --- a/pkgs/development/lua-modules/lux-lua.nix +++ b/pkgs/development/lua-modules/lux-lua.nix @@ -13,6 +13,7 @@ pkg-config, rustPlatform, toLuaModule, + stdenv, }: let luaMajorMinor = lib.take 2 (lib.splitVersion lua.version); @@ -62,6 +63,8 @@ toLuaModule ( LIBGIT2_NO_VENDOR = 1; LIBSSH2_SYS_USE_PKG_CONFIG = 1; LUX_SKIP_IMPURE_TESTS = 1; # Disable impure unit tests + # Allow undefined symbols on Darwin - they must be provided by the Lua runtime + RUSTFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-C link-arg=-undefined -C link-arg=dynamic_lookup"; }; buildPhase = ''