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:
parent
bdc0219f42
commit
a33619fcbf
48
pkgs/applications/editors/neovim-qt/default.nix
Normal file
48
pkgs/applications/editors/neovim-qt/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -13202,6 +13202,10 @@ let
|
|||||||
inherit (lua52Packages) lpeg luaMessagePack luabitop;
|
inherit (lua52Packages) lpeg luaMessagePack luabitop;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
neovim-qt = callPackage ../applications/editors/neovim-qt {
|
||||||
|
qt5 = qt55;
|
||||||
|
};
|
||||||
|
|
||||||
virtviewer = callPackage ../applications/virtualization/virt-viewer {
|
virtviewer = callPackage ../applications/virtualization/virt-viewer {
|
||||||
gtkvnc = gtkvnc.override { enableGTK3 = true; };
|
gtkvnc = gtkvnc.override { enableGTK3 = true; };
|
||||||
spice_gtk = spice_gtk.override { enableGTK3 = true; };
|
spice_gtk = spice_gtk.override { enableGTK3 = true; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user