47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, doxygen
|
|
, libmsgpack, makeWrapper, neovim, pythonPackages, qtbase }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "neovim-qt-${version}";
|
|
version = "0.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "equalsraf";
|
|
repo = "neovim-qt";
|
|
rev = "v${version}";
|
|
sha256 = "0yf9wwkl0lbbj3vyf8hxnlsk7jhk5ggivszyqxply69dbar9ww59";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DMSGPACK_INCLUDE_DIRS=${libmsgpack}/include"
|
|
"-DMSGPACK_LIBRARIES=${libmsgpack}/lib/libmsgpackc.so"
|
|
];
|
|
|
|
doCheck = false; # 5 out of 7 fail
|
|
|
|
buildInputs = with pythonPackages; [
|
|
qtbase libmsgpack
|
|
] ++ (with pythonPackages; [
|
|
jinja2 msgpack python
|
|
]);
|
|
|
|
nativeBuildInputs = [ cmake doxygen makeWrapper ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# avoid cmake trying to download libmsgpack
|
|
preConfigure = "echo \"\" > third-party/CMakeLists.txt";
|
|
|
|
postInstall = ''
|
|
wrapProgram "$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;
|
|
};
|
|
}
|