From d121a7c44ec9addcdbc88b3e982439a6fa8e0c5b Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 5 Oct 2026 13:45:54 -0500 Subject: [PATCH] fcitx5-lua: use Lua 5.5 Select Lua 5.5 locally instead of Lua 5.3. Upstream 5.0.18 handles luaL_openlibs becoming a macro by resolving luaL_openselectedlibs, and uses the selected Lua headers for its dynamic function pointer types. Keep the local lua alias and extraLdLibraries tied to the selected input, so custom interpreter overrides also select the matching runtime library. https://github.com/fcitx/fcitx5-lua/blob/5.0.18/src/addonloader/luafunc.h https://github.com/fcitx/fcitx5-lua/blob/5.0.18/src/addonloader/luastate_details.h Related to NixOS/nixpkgs#570322. Assisted-by: Codex (GPT-6.1-sol) --- pkgs/by-name/fc/fcitx5-lua/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fc/fcitx5-lua/package.nix b/pkgs/by-name/fc/fcitx5-lua/package.nix index 9926feebc993..b2ed634fa1f2 100644 --- a/pkgs/by-name/fc/fcitx5-lua/package.nix +++ b/pkgs/by-name/fc/fcitx5-lua/package.nix @@ -6,12 +6,12 @@ pkg-config, kdePackages, fcitx5, - lua5_3, + lua5_5, gettext, }: let - lua = lua5_3; + lua = lua5_5; in stdenv.mkDerivation (finalAttrs: {