luajitPackages.lux-lua: symlink to 5.1 directory (#455208)

This commit is contained in:
Matthieu Coudron
2025-10-24 18:57:27 +00:00
committed by GitHub
+3 -2
View File
@@ -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
'';