2015-11-06 10:46:12 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, qt5, pythonPackages, libmsgpack
|
|
|
|
, makeWrapper, neovim
|
|
|
|
}:
|
|
|
|
|
|
|
|
let # not very usable ATM
|
2016-10-30 23:06:59 +01:00
|
|
|
version = "0.2.3";
|
2015-11-06 10:46:12 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "neovim-qt-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "equalsraf";
|
2016-08-22 12:15:41 +02:00
|
|
|
repo = "neovim-qt";
|
2016-08-03 17:58:22 +02:00
|
|
|
rev = "v${version}";
|
2016-10-30 23:06:59 +01:00
|
|
|
sha256 = "0ichqph7nfw3934jf0sp81bqd376xna3f899cc2xg88alb4f16dv";
|
2015-11-06 10:46:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# It tries to download libmsgpack; let's use ours.
|
|
|
|
postPatch = let use-msgpack = ''
|
|
|
|
cmake_minimum_required(VERSION 2.8.11)
|
|
|
|
project(neovim-qt-deps)
|
|
|
|
|
|
|
|
# Similar enough to FindMsgpack
|
|
|
|
set(MSGPACK_INCLUDE_DIRS ${libmsgpack}/include PARENT_SCOPE)
|
2016-08-03 17:58:22 +02:00
|
|
|
set(MSGPACK_LIBRARIES msgpackc PARENT_SCOPE)
|
2015-11-06 10:46:12 +01:00
|
|
|
'';
|
|
|
|
in "echo '${use-msgpack}' > third-party/CMakeLists.txt";
|
|
|
|
|
|
|
|
buildInputs = with pythonPackages; [
|
|
|
|
cmake qt5.qtbase
|
|
|
|
python msgpack jinja2 libmsgpack
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-08-03 17:58:22 +02:00
|
|
|
postInstall = ''
|
2015-11-06 10:46:12 +01:00
|
|
|
wrapProgram "$out/bin/nvim-qt" --prefix PATH : "${neovim}/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A prototype Qt5 GUI for neovim";
|
|
|
|
license = licenses.isc;
|
|
|
|
inherit (neovim.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|