neovim-qt: init at 0pre-2015-10-18

Unfortunately, it doesn't really seem more usable than text-mode neovim
in a good terminal.
This commit is contained in:
Vladimír Čunát 2015-11-06 10:46:12 +01:00
parent bdc0219f42
commit a33619fcbf
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ stdenv, fetchFromGitHub, cmake, qt5, pythonPackages, libmsgpack
, makeWrapper, neovim
}:
let # not very usable ATM
version = "0pre-2015-10-18";
in
stdenv.mkDerivation {
name = "neovim-qt-${version}";
src = fetchFromGitHub {
repo = "neovim-qt";
owner = "equalsraf";
rev = "03236e2";
sha256 = "0hhwpnj7yfqdk7yiwrq0x6n4xx30brj9clxmxx796421rlcrxypq";
};
# 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)
set(MSGPACK_LIBRARIES msgpack PARENT_SCOPE)
'';
in "echo '${use-msgpack}' > third-party/CMakeLists.txt";
buildInputs = with pythonPackages; [
cmake qt5.qtbase
python msgpack jinja2 libmsgpack
makeWrapper
];
enableParallelBuilding = true;
installPhase = ''
mkdir -p "$out/bin"
mv ./bin/nvim-qt "$out/bin/"
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;
};
}

View file

@ -13202,6 +13202,10 @@ let
inherit (lua52Packages) lpeg luaMessagePack luabitop;
};
neovim-qt = callPackage ../applications/editors/neovim-qt {
qt5 = qt55;
};
virtviewer = callPackage ../applications/virtualization/virt-viewer {
gtkvnc = gtkvnc.override { enableGTK3 = true; };
spice_gtk = spice_gtk.override { enableGTK3 = true; };