lua51Packages.rocks-nvim: enable test

in the end, it enables only 2 tests so less sexy than I anticipated but
we can hope it improves. The nix builds helps selecting tests that
require network access.
This commit is contained in:
Matthieu C.
2026-01-17 23:49:20 +01:00
committed by teto
parent 56871d992d
commit cf95e8f6dc
@@ -997,6 +997,27 @@ in
'';
};
rocks-nvim = prev.rocks-nvim.overrideAttrs (oa: {
nativeCheckInputs = [
final.nlua
final.busted
writableTmpDirAsHomeHook
];
doCheck = lua.luaversion == "5.1";
nvimSkipModules = [
"bootstrap" # tries to install luarocks from network
];
checkPhase = ''
runHook preCheck
busted --run=offline
runHook postCheck
'';
});
rtp-nvim = prev.rtp-nvim.overrideAttrs {
doCheck = lua.luaversion == "5.1";
nativeCheckInputs = [