luajit*: Fix badPlatforms declarations for 64-bit POWER (#502746)

This commit is contained in:
Vladimír Čunát
2026-04-01 07:58:25 +00:00
committed by GitHub
2 changed files with 15 additions and 1 deletions
@@ -172,7 +172,9 @@ stdenv.mkDerivation (finalAttrs: {
badPlatforms = [
"loongarch64-linux" # See https://github.com/LuaJIT/LuaJIT/issues/1278
"riscv64-linux" # See https://github.com/LuaJIT/LuaJIT/issues/628
"powerpc64le-linux" # `#error "No support for PPC64"`
# `#error "No support for PPC64"`
"powerpc64-linux"
"powerpc64le-linux"
];
mainProgram = "lua";
maintainers = with lib.maintainers; [
@@ -15,5 +15,17 @@ callPackage ./default.nix rec {
hash = "sha256-SICmM+/dvp/36UAWAH0l7D938iFDimnoKBOjlOodrCY=";
};
extraMeta = {
badPlatforms = [
"loongarch64-linux" # See https://github.com/LuaJIT/LuaJIT/issues/1278
"riscv64-linux" # See https://github.com/LuaJIT/LuaJIT/issues/628
# 64-bit POWER (LE and BE, either ELF ABI version on the latter) *is* supported, but ELFv1 powerpc64-linux has an
# issue with memory allocation
# https://github.com/openresty/luajit2/issues/258
# Both BE ABI versions use the same double though, so would have to inspect stdenv to differentiate.
"powerpc64-linux"
];
};
inherit self passthruFun;
}