From f878018eceda14682c6d56d6bad2e3783a7c6736 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Sat, 4 Jun 2016 17:58:01 +0200 Subject: neovim: 0.1.3 -> 0.1.4 * removing luaMessagePack (only used by neovim) * using libmpack (updated to latest master since they fixed a lot of packaging issues) * package libmpack lua bidnings * neovim expression now excepts luaPackages as an input and not individual lua packages (to avoid depending on different lua version) --- pkgs/applications/editors/neovim/default.nix | 38 ++++++++++++++++------------ 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'pkgs/applications/editors/neovim') diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index 864a2184cbbd..5f7af3b00825 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchFromGitHub, cmake, gettext, glib, libmsgpack, libtermkey -, libtool, libuv, lpeg, lua, luajit, luaMessagePack, luabitop, man, ncurses -, perl, pkgconfig, unibilium, makeWrapper, vimUtils, xsel - +, libtool, libuv, lua, luajit, luaPackages, man, ncurses, perl, pkgconfig +, unibilium, makeWrapper, vimUtils, xsel +, pkgs , withPython ? true, pythonPackages, extraPythonPackages ? [] , withPython3 ? true, python3Packages, extraPython3Packages ? [] , withJemalloc ? true, jemalloc @@ -21,10 +21,10 @@ let version = "2015-11-06"; src = fetchFromGitHub { - sha256 = "090pyf1n5asaw1m2l9bsbdv3zd753aq1plb0w0drbc2k43ds7k3g"; - rev = "a9c7c6fd20fa35e0ad3e0e98901ca12dfca9c25c"; - repo = "libvterm"; owner = "neovim"; + repo = "libvterm"; + rev = "a9c7c6fd20fa35e0ad3e0e98901ca12dfca9c25c"; + sha256 = "090pyf1n5asaw1m2l9bsbdv3zd753aq1plb0w0drbc2k43ds7k3g"; }; buildInputs = [ perl ]; @@ -39,7 +39,7 @@ let description = "VT220/xterm/ECMA-48 terminal emulator library"; homepage = http://www.leonerd.org.uk/code/libvterm/; license = licenses.mit; - maintainers = with maintainers; [ nckx ]; + maintainers = with maintainers; [ nckx garbas ]; platforms = platforms.unix; }; }; @@ -60,13 +60,13 @@ let neovim = stdenv.mkDerivation rec { name = "neovim-${version}"; - version = "0.1.3"; + version = "0.1.4"; src = fetchFromGitHub { - sha256 = "1bkyfxsgb7894848nphsi6shr8bvi9z6ch0zvh2df7vkkzji8chr"; - rev = "v${version}"; - repo = "neovim"; owner = "neovim"; + repo = "neovim"; + rev = "v${version}"; + sha256 = "14c4gydkm2mz22i616190yif1k0i6d7h5hyxa1mf5cmcyqmp3kkp"; }; enableParallelBuilding = true; @@ -79,13 +79,15 @@ let # https://github.com/NixOS/nixpkgs/issues/14442 lua luajit - lpeg - luaMessagePack - luabitop libmsgpack ncurses neovimLibvterm unibilium + + luaPackages.lpeg + luaPackages.mpack + luaPackages.luabitop + ] ++ optional withJemalloc jemalloc; nativeBuildInputs = [ @@ -95,8 +97,12 @@ let pkgconfig ]; - LUA_CPATH="${lpeg}/lib/lua/${lua.luaversion}/?.so;${luabitop}/lib/lua/5.2/?.so"; - LUA_PATH="${luaMessagePack}/share/lua/5.1/?.lua"; + LUA_CPATH = "${luaPackages.lpeg}/lib/lua/${lua.luaversion}/?.so;${luaPackages.mpack}/lib/lua/${lua.luaversion}/?.so;${luaPackages.luabitop}/lib/lua/${lua.luaversion}/?.so"; + + configureFlags = [ + "-DCMAKE_BUILD_TYPE=RelWithDebInfo" + "-DENABLE_JEMALLOC=ON" + ]; preConfigure = '' substituteInPlace runtime/autoload/man.vim \ -- cgit 1.4.1