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

52 lines
1.3 KiB
Nix
Raw Normal View History

2017-02-10 19:39:15 +01:00
{ stdenv, fetchFromGitHub, cmake, doxygen
2017-03-08 10:34:54 +01:00
, libmsgpack, makeQtWrapper, neovim, pythonPackages, qtbase }:
2017-02-10 19:39:15 +01:00
stdenv.mkDerivation rec {
name = "neovim-qt-${version}";
2017-03-08 13:07:40 +01:00
version = "0.2.6";
src = fetchFromGitHub {
2017-02-10 19:39:15 +01:00
owner = "equalsraf";
repo = "neovim-qt";
rev = "v${version}";
2017-03-08 13:07:40 +01:00
sha256 = "1wsxhy8fdayy4dsr2dxgh5k4jysybjlyzj134vk325v6cqz9bsgm";
};
2017-02-10 19:39:15 +01:00
cmakeFlags = [
"-DMSGPACK_INCLUDE_DIRS=${libmsgpack}/include"
"-DMSGPACK_LIBRARIES=${libmsgpack}/lib/libmsgpackc.so"
];
2017-03-08 13:26:18 +01:00
doCheck = true;
buildInputs = with pythonPackages; [
2017-03-08 13:26:18 +01:00
neovim qtbase libmsgpack
2017-02-10 19:39:15 +01:00
] ++ (with pythonPackages; [
jinja2 msgpack python
]);
2017-03-08 10:34:54 +01:00
nativeBuildInputs = [ cmake doxygen makeQtWrapper ];
enableParallelBuilding = true;
2017-03-08 13:26:18 +01:00
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
'';
2017-02-10 19:39:15 +01:00
postInstall = ''
2017-03-08 10:34:54 +01:00
wrapQtProgram "$out/bin/nvim-qt" \
--prefix PATH : "${neovim}/bin"
'';
meta = with stdenv.lib; {
2017-02-10 19:39:15 +01:00
description = "Neovim client library and GUI, in Qt5";
license = licenses.isc;
2017-02-10 19:39:15 +01:00
maintainers = with maintainers; [ peterhoeg ];
inherit (neovim.meta) platforms;
2017-02-10 19:39:15 +01:00
inherit version;
};
}