2017-02-10 18:39:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, doxygen
|
|
|
|
, libmsgpack, makeWrapper, neovim, pythonPackages, qtbase }:
|
2015-11-06 09:46:12 +00:00
|
|
|
|
2017-02-10 18:39:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-11-06 09:46:12 +00:00
|
|
|
name = "neovim-qt-${version}";
|
2017-02-10 18:39:15 +00:00
|
|
|
version = "0.2.4";
|
2015-11-06 09:46:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-02-10 18:39:15 +00:00
|
|
|
owner = "equalsraf";
|
|
|
|
repo = "neovim-qt";
|
|
|
|
rev = "v${version}";
|
2016-12-03 13:16:45 +00:00
|
|
|
sha256 = "0yf9wwkl0lbbj3vyf8hxnlsk7jhk5ggivszyqxply69dbar9ww59";
|
2015-11-06 09:46:12 +00:00
|
|
|
};
|
|
|
|
|
2017-02-10 18:39:15 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DMSGPACK_INCLUDE_DIRS=${libmsgpack}/include"
|
|
|
|
"-DMSGPACK_LIBRARIES=${libmsgpack}/lib/libmsgpackc.so"
|
|
|
|
];
|
2015-11-06 09:46:12 +00:00
|
|
|
|
2017-02-10 18:39:15 +00:00
|
|
|
doCheck = false; # 5 out of 7 fail
|
2015-11-06 09:46:12 +00:00
|
|
|
|
|
|
|
buildInputs = with pythonPackages; [
|
2017-02-10 18:39:15 +00:00
|
|
|
qtbase libmsgpack
|
|
|
|
] ++ (with pythonPackages; [
|
|
|
|
jinja2 msgpack python
|
|
|
|
]);
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake doxygen makeWrapper ];
|
2015-11-06 09:46:12 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-02-10 18:39:15 +00:00
|
|
|
# avoid cmake trying to download libmsgpack
|
|
|
|
preConfigure = "echo \"\" > third-party/CMakeLists.txt";
|
|
|
|
|
2016-08-03 16:58:22 +01:00
|
|
|
postInstall = ''
|
2015-11-06 09:46:12 +00:00
|
|
|
wrapProgram "$out/bin/nvim-qt" --prefix PATH : "${neovim}/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-02-10 18:39:15 +00:00
|
|
|
description = "Neovim client library and GUI, in Qt5";
|
2015-11-06 09:46:12 +00:00
|
|
|
license = licenses.isc;
|
2017-02-10 18:39:15 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2015-11-06 09:46:12 +00:00
|
|
|
inherit (neovim.meta) platforms;
|
2017-02-10 18:39:15 +00:00
|
|
|
inherit version;
|
2015-11-06 09:46:12 +00:00
|
|
|
};
|
|
|
|
}
|