Merge pull request #302147 from teto/teto/haskell-tools-nvim-enable-tests
teto/haskell tools nvim enable tests
This commit is contained in:
commit
675713476a
1 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue