luaPackages.luazip: 2007-10-30 -> 1.2.7

This commit is contained in:
Matthieu Coudron 2019-06-05 13:21:38 +09:00
parent 62d4e044e7
commit 704358dcb5
4 changed files with 23 additions and 27 deletions

View file

@ -28,6 +28,7 @@ luabitop,,,,
luaevent,,,,
luacheck,,,,
luaffi,,http://luarocks.org/dev,,
luazip,,,,
luuid,,,,
markdown,,,,
penlight,,,,

1 # nix name luarocks name server version luaversion
28 luaevent
29 luacheck
30 luaffi http://luarocks.org/dev
31 luazip
32 luuid
33 markdown
34 penlight

View file

@ -614,6 +614,25 @@ luaffi = buildLuarocksPackage {
};
};
};
luazip = buildLuarocksPackage {
pname = "luazip";
version = "1.2.7-1";
src = fetchurl {
url = https://luarocks.org/luazip-1.2.7-1.src.rock;
sha256 = "1yprlr1ap6bhshhy88qfphmmyg9zp1py2hj2158iw6vsva0fk03l";
};
disabled = (luaOlder "5.1") || (luaAtLeast "5.4");
propagatedBuildInputs = [ lua ];
meta = {
homepage = "https://github.com/mpeterv/luazip";
description = "Library for reading files inside zip files";
license = {
fullName = "MIT";
};
};
};
luuid = buildLuarocksPackage {
pname = "luuid";
version = "20120509-2";

View file

@ -46,6 +46,9 @@ with super;
lua-iconv = super.lua-iconv.override({
buildInputs = [ pkgs.libiconv ];
});
luazip = super.luazip.override({
buildInputs = [ pkgs.zziplib ];
});
luv = super.luv.overrideAttrs(oa: {
# Use system libuv instead of building local and statically linking
# This is a hacky way to specify -DWITH_SHARED_LIBUV=ON which

View file

@ -482,33 +482,6 @@ with self; {
};
};
luazip = buildLuaPackage rec {
name = "zip-${version}";
version = "2007-10-30";
src = fetchFromGitHub {
owner = "luaforge";
repo = "luazip";
rev = "0b8f5c958e170b1b49f05bc267bc0351ad4dfc44";
sha256 = "0zrrwhmzny5zbpx91bjbl77gzkvvdi3qhhviliggp0aj8w3faxsr";
};
buildInputs = [ zziplib ];
patches = [ ../development/lua-modules/zip.patch ];
# Does not currently work under Lua 5.2 or LuaJIT.
disabled = isLua52 || isLua53 || isLuaJIT;
meta = with stdenv.lib; {
description = "Lua library to read files stored inside zip files";
homepage = "https://github.com/luaforge/luazip";
license = licenses.mit;
maintainers = with maintainers; [ vyp ];
platforms = platforms.linux;
};
};
luazlib = buildLuaPackage rec {
name = "zlib-${version}";
version = "1.1";