luaPackages.haskell-tools-nvim: enable tests

limited to 5.1 as nlua uses neovim as lua interpreter, which is 5.1
This commit is contained in:
teto sse 2024-04-06 03:12:20 +02:00 committed by Matthieu C.
parent dc40530573
commit a204cd05a1
1 changed files with 11 additions and 0 deletions

View File

@ -480,6 +480,17 @@ in
};
});
haskell-tools-nvim = prev.haskell-tools-nvim.overrideAttrs(oa: {
doCheck = lua.luaversion == "5.1";
nativeCheckInputs = [ final.nlua final.busted ];
checkPhase = ''
runHook preCheck
export HOME=$(mktemp -d)
busted --lua=nlua
runHook postCheck
'';
});
plenary-nvim = prev.plenary-nvim.overrideAttrs (oa: {
postPatch = ''
sed -Ei lua/plenary/curl.lua \