Merge pull request #22651 from peterhoeg/f/nvim-qt

neovim-qt: clean up
This commit is contained in:
Frederik Rietdijk 2017-02-11 08:46:15 +01:00 committed by GitHub
commit 20eac78ccb
2 changed files with 27 additions and 27 deletions

View File

@ -1,46 +1,46 @@
{ stdenv, fetchFromGitHub, cmake, qt5, pythonPackages, libmsgpack { stdenv, fetchFromGitHub, cmake, doxygen
, makeWrapper, neovim , libmsgpack, makeWrapper, neovim, pythonPackages, qtbase }:
}:
let # not very usable ATM stdenv.mkDerivation rec {
version = "0.2.4";
in
stdenv.mkDerivation {
name = "neovim-qt-${version}"; name = "neovim-qt-${version}";
version = "0.2.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "equalsraf"; owner = "equalsraf";
repo = "neovim-qt"; repo = "neovim-qt";
rev = "v${version}"; rev = "v${version}";
sha256 = "0yf9wwkl0lbbj3vyf8hxnlsk7jhk5ggivszyqxply69dbar9ww59"; sha256 = "0yf9wwkl0lbbj3vyf8hxnlsk7jhk5ggivszyqxply69dbar9ww59";
}; };
# It tries to download libmsgpack; let's use ours. cmakeFlags = [
postPatch = let use-msgpack = '' "-DMSGPACK_INCLUDE_DIRS=${libmsgpack}/include"
cmake_minimum_required(VERSION 2.8.11) "-DMSGPACK_LIBRARIES=${libmsgpack}/lib/libmsgpackc.so"
project(neovim-qt-deps)
# Similar enough to FindMsgpack
set(MSGPACK_INCLUDE_DIRS ${libmsgpack}/include PARENT_SCOPE)
set(MSGPACK_LIBRARIES msgpackc PARENT_SCOPE)
'';
in "echo '${use-msgpack}' > third-party/CMakeLists.txt";
buildInputs = with pythonPackages; [
cmake qt5.qtbase
python msgpack jinja2 libmsgpack
makeWrapper
]; ];
doCheck = false; # 5 out of 7 fail
buildInputs = with pythonPackages; [
qtbase libmsgpack
] ++ (with pythonPackages; [
jinja2 msgpack python
]);
nativeBuildInputs = [ cmake doxygen makeWrapper ];
enableParallelBuilding = true; enableParallelBuilding = true;
# avoid cmake trying to download libmsgpack
preConfigure = "echo \"\" > third-party/CMakeLists.txt";
postInstall = '' postInstall = ''
wrapProgram "$out/bin/nvim-qt" --prefix PATH : "${neovim}/bin" wrapProgram "$out/bin/nvim-qt" --prefix PATH : "${neovim}/bin"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A prototype Qt5 GUI for neovim"; description = "Neovim client library and GUI, in Qt5";
license = licenses.isc; license = licenses.isc;
maintainers = with maintainers; [ peterhoeg ];
inherit (neovim.meta) platforms; inherit (neovim.meta) platforms;
inherit version;
}; };
} }

View File

@ -15405,7 +15405,7 @@ with pkgs;
neovim = callPackage ../applications/editors/neovim { }; neovim = callPackage ../applications/editors/neovim { };
neovim-qt = callPackage ../applications/editors/neovim/qt.nix { }; neovim-qt = qt5.callPackage ../applications/editors/neovim/qt.nix { };
neovim-pygui = pythonPackages.neovim_gui; neovim-pygui = pythonPackages.neovim_gui;