Merge pull request #302147 from teto/teto/haskell-tools-nvim-enable-tests

teto/haskell tools nvim enable tests
This commit is contained in:
Matthieu Coudron 2024-04-21 19:05:40 +02:00 committed by GitHub
commit 675713476a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -480,6 +480,16 @@ 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 = ''
@ -585,6 +595,15 @@ in
};
});
nlua = prev.nlua.overrideAttrs(oa: {
# patchShebang removes the nvim in nlua's shebang so we hardcode one
postFixup = ''
sed -i -e "1 s|.*|#\!${coreutils}/bin/env -S ${neovim-unwrapped}/bin/nvim -l|" "$out/bin/nlua"
'';
dontPatchShebangs = true;
});
rapidjson = prev.rapidjson.overrideAttrs (oa: {
preBuild = ''
sed -i '/set(CMAKE_CXX_FLAGS/d' CMakeLists.txt