From 440b010fc466e8958a1b3e30f18ea057c39831a0 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Fri, 24 Oct 2025 13:07:20 +0200 Subject: [PATCH] luajitPackages.lux-lua: symlink to 5.1 directory --- pkgs/development/lua-modules/lux-lua.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/lua-modules/lux-lua.nix b/pkgs/development/lua-modules/lux-lua.nix index e85eb41f0966..2f9d5ba9e04d 100644 --- a/pkgs/development/lua-modules/lux-lua.nix +++ b/pkgs/development/lua-modules/lux-lua.nix @@ -16,7 +16,8 @@ }: let luaMajorMinor = lib.take 2 (lib.splitVersion lua.version); - luaVersionDir = if isLuaJIT then "jit" else lib.concatStringsSep "." luaMajorMinor; + luxLuaVersionDir = if isLuaJIT then "jit" else lib.concatStringsSep "." luaMajorMinor; + luaVersionDir = if isLuaJIT then "5.1" else lib.concatStringsSep "." luaMajorMinor; luaFeature = if isLuaJIT then "luajit" else "lua${lib.concatStringsSep "" luaMajorMinor}"; in toLuaModule ( @@ -75,7 +76,7 @@ toLuaModule ( cp -r target/dist/share $out cp -r target/dist/lib $out mkdir -p $out/lib/lua - ln -s $out/share/lux-lua/${luaVersionDir} $out/lib/lua/${luaVersionDir} + ln -s $out/share/lux-lua/${luxLuaVersionDir} $out/lib/lua/${luaVersionDir} runHook postInstall '';