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)
This commit is contained in:
parent
3204c2753d
commit
f878018ece
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, gettext, glib, libmsgpack, libtermkey
|
{ stdenv, fetchFromGitHub, cmake, gettext, glib, libmsgpack, libtermkey
|
||||||
, libtool, libuv, lpeg, lua, luajit, luaMessagePack, luabitop, man, ncurses
|
, libtool, libuv, lua, luajit, luaPackages, man, ncurses, perl, pkgconfig
|
||||||
, perl, pkgconfig, unibilium, makeWrapper, vimUtils, xsel
|
, unibilium, makeWrapper, vimUtils, xsel
|
||||||
|
, pkgs
|
||||||
, withPython ? true, pythonPackages, extraPythonPackages ? []
|
, withPython ? true, pythonPackages, extraPythonPackages ? []
|
||||||
, withPython3 ? true, python3Packages, extraPython3Packages ? []
|
, withPython3 ? true, python3Packages, extraPython3Packages ? []
|
||||||
, withJemalloc ? true, jemalloc
|
, withJemalloc ? true, jemalloc
|
||||||
@ -21,10 +21,10 @@ let
|
|||||||
version = "2015-11-06";
|
version = "2015-11-06";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
sha256 = "090pyf1n5asaw1m2l9bsbdv3zd753aq1plb0w0drbc2k43ds7k3g";
|
|
||||||
rev = "a9c7c6fd20fa35e0ad3e0e98901ca12dfca9c25c";
|
|
||||||
repo = "libvterm";
|
|
||||||
owner = "neovim";
|
owner = "neovim";
|
||||||
|
repo = "libvterm";
|
||||||
|
rev = "a9c7c6fd20fa35e0ad3e0e98901ca12dfca9c25c";
|
||||||
|
sha256 = "090pyf1n5asaw1m2l9bsbdv3zd753aq1plb0w0drbc2k43ds7k3g";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ perl ];
|
buildInputs = [ perl ];
|
||||||
@ -39,7 +39,7 @@ let
|
|||||||
description = "VT220/xterm/ECMA-48 terminal emulator library";
|
description = "VT220/xterm/ECMA-48 terminal emulator library";
|
||||||
homepage = http://www.leonerd.org.uk/code/libvterm/;
|
homepage = http://www.leonerd.org.uk/code/libvterm/;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ nckx ];
|
maintainers = with maintainers; [ nckx garbas ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -60,13 +60,13 @@ let
|
|||||||
|
|
||||||
neovim = stdenv.mkDerivation rec {
|
neovim = stdenv.mkDerivation rec {
|
||||||
name = "neovim-${version}";
|
name = "neovim-${version}";
|
||||||
version = "0.1.3";
|
version = "0.1.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
sha256 = "1bkyfxsgb7894848nphsi6shr8bvi9z6ch0zvh2df7vkkzji8chr";
|
|
||||||
rev = "v${version}";
|
|
||||||
repo = "neovim";
|
|
||||||
owner = "neovim";
|
owner = "neovim";
|
||||||
|
repo = "neovim";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "14c4gydkm2mz22i616190yif1k0i6d7h5hyxa1mf5cmcyqmp3kkp";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
@ -79,13 +79,15 @@ let
|
|||||||
# https://github.com/NixOS/nixpkgs/issues/14442
|
# https://github.com/NixOS/nixpkgs/issues/14442
|
||||||
lua
|
lua
|
||||||
luajit
|
luajit
|
||||||
lpeg
|
|
||||||
luaMessagePack
|
|
||||||
luabitop
|
|
||||||
libmsgpack
|
libmsgpack
|
||||||
ncurses
|
ncurses
|
||||||
neovimLibvterm
|
neovimLibvterm
|
||||||
unibilium
|
unibilium
|
||||||
|
|
||||||
|
luaPackages.lpeg
|
||||||
|
luaPackages.mpack
|
||||||
|
luaPackages.luabitop
|
||||||
|
|
||||||
] ++ optional withJemalloc jemalloc;
|
] ++ optional withJemalloc jemalloc;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -95,8 +97,12 @@ let
|
|||||||
pkgconfig
|
pkgconfig
|
||||||
];
|
];
|
||||||
|
|
||||||
LUA_CPATH="${lpeg}/lib/lua/${lua.luaversion}/?.so;${luabitop}/lib/lua/5.2/?.so";
|
LUA_CPATH = "${luaPackages.lpeg}/lib/lua/${lua.luaversion}/?.so;${luaPackages.mpack}/lib/lua/${lua.luaversion}/?.so;${luaPackages.luabitop}/lib/lua/${lua.luaversion}/?.so";
|
||||||
LUA_PATH="${luaMessagePack}/share/lua/5.1/?.lua";
|
|
||||||
|
configureFlags = [
|
||||||
|
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
|
||||||
|
"-DENABLE_JEMALLOC=ON"
|
||||||
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace runtime/autoload/man.vim \
|
substituteInPlace runtime/autoload/man.vim \
|
||||||
|
@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libmpack-${version}";
|
name = "libmpack-${version}";
|
||||||
version = "1.0.2";
|
version = "1.0.3-rev${rev}";
|
||||||
|
rev = "071d944c9ff7b7fbd2c3c19d1fd1a231363ddeea";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tarruda";
|
owner = "tarruda";
|
||||||
repo = "libmpack";
|
repo = "libmpack";
|
||||||
rev = version;
|
inherit rev;
|
||||||
sha256 = "0s391vyz1gv4j95zdyvxspw7c0xq7d7b4fh0yxrgqqqp5js1rlj0";
|
sha256 = "1h3pbmykm69gfyi0wz647gz5836a6f3jc4azzll7i3mkpc11gcrd";
|
||||||
};
|
};
|
||||||
buildInputs = [ libtool ];
|
buildInputs = [ libtool ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -19,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Simple implementation of msgpack in C";
|
description = "Simple implementation of msgpack in C";
|
||||||
homepage = "https://github.com/tarruda/libmpack/";
|
homepage = "https://github.com/tarruda/libmpack/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ lovek323 ];
|
maintainers = with maintainers; [ lovek323 garbas ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -14477,9 +14477,7 @@ in
|
|||||||
|
|
||||||
vimpc = callPackage ../applications/audio/vimpc { };
|
vimpc = callPackage ../applications/audio/vimpc { };
|
||||||
|
|
||||||
neovim = callPackage ../applications/editors/neovim {
|
neovim = callPackage ../applications/editors/neovim { };
|
||||||
inherit (lua52Packages) lpeg luaMessagePack luabitop;
|
|
||||||
};
|
|
||||||
|
|
||||||
neovim-qt = callPackage ../applications/editors/neovim/qt.nix {
|
neovim-qt = callPackage ../applications/editors/neovim/qt.nix {
|
||||||
qt5 = qt55;
|
qt5 = qt55;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{ fetchurl, fetchzip, stdenv, lua, callPackage, unzip, zziplib, pkgconfig, libtool
|
{ fetchurl, fetchzip, stdenv, lua, callPackage, unzip, zziplib, pkgconfig, libtool
|
||||||
, pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat, cairo
|
, pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat, cairo
|
||||||
, perl, gtk, python, glib, gobjectIntrospection, libevent, zlib, autoreconfHook
|
, perl, gtk, python, glib, gobjectIntrospection, libevent, zlib, autoreconfHook
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub, libmpack
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -101,7 +101,7 @@ let
|
|||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
makeFlagsArray=(
|
makeFlagsArray=(
|
||||||
LUA_LDIR="$out/share/lua/${lua.luaversion}"
|
lua_ldir="$out/share/lua/${lua.luaversion}"
|
||||||
LUA_INC="-I${lua}/include" LUA_CDIR="$out/lib/lua/${lua.luaversion}"
|
LUA_INC="-I${lua}/include" LUA_CDIR="$out/lib/lua/${lua.luaversion}"
|
||||||
EXPAT_INC="-I${expat.dev}/include");
|
EXPAT_INC="-I${expat.dev}/include");
|
||||||
'';
|
'';
|
||||||
@ -363,22 +363,6 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
luaMessagePack = buildLuaPackage rec {
|
|
||||||
name = "lua-MessagePack-${version}";
|
|
||||||
version = "0.3.1";
|
|
||||||
src = fetchzip {
|
|
||||||
url = "https://github.com/fperrad/lua-MessagePack/archive/${version}.tar.gz";
|
|
||||||
sha256 = "1xlif8fkwd8bb78wrvf2z309p7apms350lbg6qavylsvz57lkjm6";
|
|
||||||
};
|
|
||||||
buildInputs = [ unzip ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "http://fperrad.github.io/lua-MessagePack/index.html";
|
|
||||||
hydraPlatforms = stdenv.lib.platforms.linux;
|
|
||||||
license = stdenv.lib.licenses.mit;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
lgi = stdenv.mkDerivation rec {
|
lgi = stdenv.mkDerivation rec {
|
||||||
name = "lgi-${version}";
|
name = "lgi-${version}";
|
||||||
version = "0.7.2";
|
version = "0.7.2";
|
||||||
@ -405,6 +389,28 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mpack = buildLuaPackage rec {
|
||||||
|
name = "lua-mpack-${libmpack.version}";
|
||||||
|
src = libmpack.src;
|
||||||
|
sourceRoot = "libmpack-${libmpack.rev}-src/binding/lua";
|
||||||
|
buildInputs = [ libmpack ]; #libtool lua pkgconfig ];
|
||||||
|
dontBuild = true;
|
||||||
|
preInstall = ''
|
||||||
|
mkdir -p $out/lib/lua/${lua.luaversion}
|
||||||
|
'';
|
||||||
|
installFlags = [
|
||||||
|
"USE_SYSTEM_LUA=yes"
|
||||||
|
"LUA_VERSION_MAJ_MIN="
|
||||||
|
"LUA_CMOD_INSTALLDIR=$$out/lib/lua/${lua.luaversion}"
|
||||||
|
];
|
||||||
|
meta = {
|
||||||
|
description = "Simple implementation of msgpack in C Lua 5.1";
|
||||||
|
homepage = "https://github.com/tarruda/libmpack";
|
||||||
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
||||||
|
license = stdenv.lib.licenses.mit;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
vicious = stdenv.mkDerivation rec {
|
vicious = stdenv.mkDerivation rec {
|
||||||
name = "vicious-${version}";
|
name = "vicious-${version}";
|
||||||
version = "2.1.3";
|
version = "2.1.3";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user