Skip to content

Commit

Permalink
Merge pull request #62717 from teto/luazip
Browse files Browse the repository at this point in the history
Luazip update
  • Loading branch information
teto committed Jun 6, 2019
2 parents e44fdaa + f67d859 commit 7a35dce
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 55 deletions.
1 change: 1 addition & 0 deletions maintainers/scripts/luarocks-packages.csv
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ luabitop,,,,
luaevent,,,,
luacheck,,,,
luaffi,,http://luarocks.org/dev,,
luazip,,,,
luuid,,,,
markdown,,,,
penlight,,,,
Expand Down
28 changes: 0 additions & 28 deletions pkgs/development/interpreters/lua-5/zip.nix

This file was deleted.

19 changes: 19 additions & 0 deletions pkgs/development/lua-modules/generated-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
3 changes: 3 additions & 0 deletions pkgs/development/lua-modules/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 0 additions & 27 deletions pkgs/top-level/lua-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 7a35dce

Please sign in to comment.