luaPackages.cqueues: enable builds for lua 5.4

This commit is contained in:
Anton Tetov
2025-04-28 17:45:12 +02:00
committed by Matthieu Coudron
parent f454b71552
commit 907c6fb6da
+4 -4
View File
@@ -101,7 +101,7 @@ in
'';
});
cqueues = prev.cqueues.overrideAttrs (oa: rec {
cqueues = prev.cqueues.overrideAttrs (oa: {
# Parse out a version number without the Lua version inserted
version =
let
@@ -112,7 +112,7 @@ in
in
"${date}-${rev}";
meta.broken = luaOlder "5.1" || luaAtLeast "5.4";
meta.broken = luaOlder "5.1" || luaAtLeast "5.5";
nativeBuildInputs = oa.nativeBuildInputs ++ [
gnum4
@@ -133,13 +133,13 @@ in
# version, which doesn't work well for us, so modify it
postConfigure =
let
inherit (prev.cqueues) pname;
inherit (final.cqueues) pname version;
in
''
# 'all' target auto-detects correct Lua version, which is fine for us as
# we only have the right one available :)
sed -Ei ''${rockspecFilename} \
-e 's|lua == 5.[[:digit:]]|lua >= 5.1, <= 5.3|' \
-e 's|lua == 5.[[:digit:]]|lua >= 5.1, <= 5.4|' \
-e 's|build_target = "[^"]+"|build_target = "all"|' \
-e 's|version = "[^"]+"|version = "${version}"|'
specDir=$(dirname ''${rockspecFilename})