luaPackages.lz-n: enable checks for lua 5.1

This commit is contained in:
Marc Jakobi 2024-06-18 18:17:15 +02:00 committed by Matthieu Coudron
parent 1ddd48bc0c
commit 7d329d1a9e

View File

@ -530,6 +530,17 @@ in
};
});
lz-n = prev.lz-n.overrideAttrs(oa: {
doCheck = lua.luaversion == "5.1";
nativeCheckInputs = [ final.nlua final.busted ];
checkPhase = ''
runHook preCheck
export HOME=$(mktemp -d)
busted --lua=nlua
runHook postCheck
'';
});
neotest = prev.neotest.overrideAttrs(oa: {
# A few tests fail for strange reasons on darwin
doCheck = !stdenv.isDarwin;