nixpkgs/pkgs/applications/editors/neovim/qt.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

2017-02-10 18:39:15 +00:00
{ stdenv, fetchFromGitHub, cmake, doxygen
2017-03-08 09:34:54 +00:00
, libmsgpack, makeQtWrapper, neovim, pythonPackages, qtbase }:
2017-02-10 18:39:15 +00:00
stdenv.mkDerivation rec {
name = "neovim-qt-${version}";
2017-03-08 09:34:54 +00:00
version = "0.2.5";
src = fetchFromGitHub {
2017-02-10 18:39:15 +00:00
owner = "equalsraf";
repo = "neovim-qt";
rev = "v${version}";
2017-03-08 09:34:54 +00:00
sha256 = "1q706k400j5v9kans71yjz9p36ran2lpz29m4vjzj920llksln3d";
};
2017-02-10 18:39:15 +00:00
cmakeFlags = [
"-DMSGPACK_INCLUDE_DIRS=${libmsgpack}/include"
"-DMSGPACK_LIBRARIES=${libmsgpack}/lib/libmsgpackc.so"
];
2017-02-10 18:39:15 +00:00
doCheck = false; # 5 out of 7 fail
buildInputs = with pythonPackages; [
2017-02-10 18:39:15 +00:00
qtbase libmsgpack
] ++ (with pythonPackages; [
jinja2 msgpack python
]);
2017-03-08 09:34:54 +00:00
nativeBuildInputs = [ cmake doxygen makeQtWrapper ];
enableParallelBuilding = true;
2017-02-10 18:39:15 +00:00
# avoid cmake trying to download libmsgpack
preConfigure = "echo \"\" > third-party/CMakeLists.txt";
postInstall = ''
2017-03-08 09:34:54 +00:00
wrapQtProgram "$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";
license = licenses.isc;
2017-02-10 18:39:15 +00:00
maintainers = with maintainers; [ peterhoeg ];
inherit (neovim.meta) platforms;
2017-02-10 18:39:15 +00:00
inherit version;
};
}