Merge pull request #62751 from teto/luazlib

Luazlib renamed to lua-zlib + update + move to generated
This commit is contained in:
Matthieu Coudron 2019-06-06 12:44:46 +09:00 committed by GitHub
commit 8b3d0b00d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 73 additions and 86 deletions

View File

@ -1,46 +1,47 @@
# nix name, luarocks name, server, version,luaversion # nix name, luarocks name, server, version,luaversion,maintainers
ansicolors,,,, ansicolors,,,,,
argparse,,,, argparse,,,,,
basexx,,,, basexx,,,,,
binaryheap,,,, binaryheap,,,,,vcunat
digestif,,http://luarocks.org/dev,,lua5_3 digestif,,http://luarocks.org/dev,,lua5_3,
dkjson,,,, dkjson,,,,,
fifo,,,, fifo,,,,,
http,,,, http,,,,,
inspect,,,, inspect,,,,,
ldoc,,,, ldoc,,,,,
lgi,,,, lgi,,,,,
lpeg_patterns,,,, lpeg_patterns,,,,,
lpeglabel,,,, lpeglabel,,,,,
lpty,,,, lpty,,,,,
lrexlib-gnu,,,, lrexlib-gnu,,,,,
lrexlib-posix,,,, lrexlib-posix,,,,,
ltermbox,,,, ltermbox,,,,,
cjson,lua-cjson,,, cjson,lua-cjson,,,,
lua-cmsgpack,,,, lua-cmsgpack,,,,,
lua_cliargs,,,, lua_cliargs,,,,,
lua-iconv,,,, lua-iconv,,,,,
lua-lsp,,http://luarocks.org/dev,, lua-lsp,,http://luarocks.org/dev,,,
lua-messagepack,,,, lua-messagepack,,,,,
lua-term,,,, lua-term,,,,,
lua-toml,,,, lua-toml,,,,,
luabitop,,,, lua-zlib,,,,,koral
luaevent,,,, luabitop,,,,,
luacheck,,,, luaevent,,,,,
luaffi,,http://luarocks.org/dev,, luacheck,,,,,
luazip,,,, luaffi,,http://luarocks.org/dev,,,
luuid,,,, luazip,,,,,
markdown,,,, luuid,,,,,
penlight,,,, markdown,,,,,
rapidjson,,,, penlight,,,,,
say,,,, rapidjson,,,,,
std__debug,std._debug,,, say,,,,,
std_normalize,std.normalize,,, std__debug,std._debug,,,,
luv,,,, std_normalize,std.normalize,,,,
luasystem,,,, luv,,,,,
mediator_lua,,http://luarocks.org/manifests/teto,, luasystem,,,,,
mpack,,http://luarocks.org/manifests/teto,, mediator_lua,,http://luarocks.org/manifests/teto,,,
nvim-client,,,, mpack,,http://luarocks.org/manifests/teto,,,
busted,,http://luarocks.org/manifests/teto,, nvim-client,,,,,
luassert,,,, busted,,http://luarocks.org/manifests/teto,,,
coxpcall,,https://luarocks.org/manifests/hisham,1.17.0-1, luassert,,,,,
coxpcall,,https://luarocks.org/manifests/hisham,1.17.0-1,,

1 # nix name luarocks name server version luaversion maintainers
2 ansicolors
3 argparse
4 basexx
5 binaryheap vcunat
6 digestif http://luarocks.org/dev lua5_3
7 dkjson
8 fifo
9 http
10 inspect
11 ldoc
12 lgi
13 lpeg_patterns
14 lpeglabel
15 lpty
16 lrexlib-gnu
17 lrexlib-posix
18 ltermbox
19 cjson lua-cjson
20 lua-cmsgpack
21 lua_cliargs
22 lua-iconv
23 lua-lsp http://luarocks.org/dev
24 lua-messagepack
25 lua-term
26 lua-toml
27 luabitop lua-zlib koral
28 luaevent luabitop
29 luacheck luaevent
30 luaffi luacheck http://luarocks.org/dev
31 luazip luaffi http://luarocks.org/dev
32 luuid luazip
33 markdown luuid
34 penlight markdown
35 rapidjson penlight
36 say rapidjson
37 std__debug say std._debug
38 std_normalize std__debug std.normalize std._debug
39 luv std_normalize std.normalize
40 luasystem luv
41 mediator_lua luasystem http://luarocks.org/manifests/teto
42 mpack mediator_lua http://luarocks.org/manifests/teto
43 nvim-client mpack http://luarocks.org/manifests/teto
44 busted nvim-client http://luarocks.org/manifests/teto
45 luassert busted http://luarocks.org/manifests/teto
46 coxpcall luassert https://luarocks.org/manifests/hisham 1.17.0-1
47 coxpcall https://luarocks.org/manifests/hisham 1.17.0-1

View File

@ -528,6 +528,25 @@ lua-toml = buildLuarocksPackage {
}; };
}; };
}; };
lua-zlib = buildLuarocksPackage {
pname = "lua-zlib";
version = "1.2-0";
src = fetchurl {
url = https://luarocks.org/lua-zlib-1.2-0.src.rock;
sha256 = "0qa0vnx45nxdj6fqag6fr627zsnd2bmrr9bdbm8jv6lcnyi6nhs2";
};
disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];
meta = {
homepage = "https://github.com/brimworks/lua-zlib";
description = "Simple streaming interface to zlib for Lua.";
license = {
fullName = "MIT";
};
};
};
luabitop = buildLuarocksPackage { luabitop = buildLuarocksPackage {
pname = "luabitop"; pname = "luabitop";
version = "1.0.2-3"; version = "1.0.2-3";

View File

@ -32,6 +32,10 @@ with super;
lrexlib-gnu = super.lrexlib-gnu.override({ lrexlib-gnu = super.lrexlib-gnu.override({
buildInputs = [ pkgs.gnulib ]; buildInputs = [ pkgs.gnulib ];
}); });
lua-zlib = super.lua-zlib.override({
buildInputs = [ pkgs.zlib.dev ];
disabled=luaOlder "5.1" || luaAtLeast "5.4";
});
luaevent = super.luaevent.override({ luaevent = super.luaevent.override({
buildInputs = with pkgs; [ libevent.dev libevent ]; buildInputs = with pkgs; [ libevent.dev libevent ];
propagatedBuildInputs = [ luasocket ]; propagatedBuildInputs = [ luasocket ];

View File

@ -1,5 +1,5 @@
{ stdenv, darwin, fetchurl, makeWrapper, pkgconfig { stdenv, darwin, fetchurl, makeWrapper, pkgconfig
, harfbuzz, icu, lpeg, luaexpat, luazlib, luafilesystem, luasocket, luasec , harfbuzz, icu, lpeg, luaexpat, lua-zlib, luafilesystem, luasocket, luasec
, fontconfig, lua, libiconv , fontconfig, lua, libiconv
, makeFontsConf, gentium, gentium-book-basic, dejavu_fonts , makeFontsConf, gentium, gentium-book-basic, dejavu_fonts
}: }:
@ -8,7 +8,7 @@ with stdenv.lib;
let let
libs = [ lpeg luaexpat luazlib luafilesystem luasocket luasec ]; libs = [ lpeg luaexpat lua-zlib luafilesystem luasocket luasec ];
getPath = lib : type : "${lib}/lib/lua/${lua.luaversion}/?.${type};${lib}/share/lua/${lua.luaversion}/?.${type}"; getPath = lib : type : "${lib}/lib/lua/${lua.luaversion}/?.${type};${lib}/share/lua/${lua.luaversion}/?.${type}";
getLuaPath = lib : getPath lib "lua"; getLuaPath = lib : getPath lib "lua";
getLuaCPath = lib : getPath lib "so"; getLuaCPath = lib : getPath lib "so";

View File

@ -5838,7 +5838,7 @@ in
silc_server = callPackage ../servers/silc-server { }; silc_server = callPackage ../servers/silc-server { };
sile = callPackage ../tools/typesetting/sile { sile = callPackage ../tools/typesetting/sile {
inherit (lua52Packages) lua luaexpat luazlib luafilesystem lpeg luasocket luasec; inherit (lua52Packages) lua luaexpat lua-zlib luafilesystem lpeg luasocket luasec;
}; };
silver-searcher = callPackage ../tools/text/silver-searcher { }; silver-searcher = callPackage ../tools/text/silver-searcher { };

View File

@ -482,43 +482,6 @@ with self; {
}; };
}; };
luazlib = buildLuaPackage rec {
name = "zlib-${version}";
version = "1.1";
src = fetchFromGitHub {
owner = "brimworks";
repo = "lua-zlib";
rev = "v${version}";
sha256 = "1520lk4xpf094xn2zallqgqhs0zb4w61l49knv9y8pmhkdkxzzgy";
};
buildInputs = [ zlib ];
preConfigure = ''
substituteInPlace Makefile --replace gcc cc --replace "-llua" ""
'';
preBuild = ''
makeFlagsArray=(
${platformString}
LUAPATH="$out/share/lua/${lua.luaversion}"
LUACPATH="$out/lib/lua/${lua.luaversion}"
INCDIR="-I${lua}/include"
LIBDIR="-L${lua}/lib");
'';
preInstall = "mkdir -p $out/lib/lua/${lua.luaversion}";
meta = with stdenv.lib; {
description = "Simple streaming interface to zlib for Lua";
homepage = https://github.com/brimworks/lua-zlib;
license = licenses.mit;
maintainers = with maintainers; [ koral ];
platforms = platforms.unix;
};
};
luastdlib = buildLuaPackage rec { luastdlib = buildLuaPackage rec {
name = "stdlib-${version}"; name = "stdlib-${version}";