52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, doxygen
|
|
, libmsgpack, makeQtWrapper, neovim, pythonPackages, qtbase }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "neovim-qt-${version}";
|
|
version = "0.2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "equalsraf";
|
|
repo = "neovim-qt";
|
|
rev = "v${version}";
|
|
sha256 = "1wsxhy8fdayy4dsr2dxgh5k4jysybjlyzj134vk325v6cqz9bsgm";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DMSGPACK_INCLUDE_DIRS=${libmsgpack}/include"
|
|
"-DMSGPACK_LIBRARIES=${libmsgpack}/lib/libmsgpackc.so"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
buildInputs = with pythonPackages; [
|
|
neovim qtbase libmsgpack
|
|
] ++ (with pythonPackages; [
|
|
jinja2 msgpack python
|
|
]);
|
|
|
|
nativeBuildInputs = [ cmake doxygen makeQtWrapper ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
preConfigure = ''
|
|
# avoid cmake trying to download libmsgpack
|
|
echo "" > third-party/CMakeLists.txt
|
|
# we rip out the gui test as spawning a GUI fails in our build environment
|
|
sed -i '/^add_xtest_gui/d' test/CMakeLists.txt
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapQtProgram "$out/bin/nvim-qt" \
|
|
--prefix PATH : "${neovim}/bin"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Neovim client library and GUI, in Qt5";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
inherit (neovim.meta) platforms;
|
|
inherit version;
|
|
};
|
|
}
|