3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #62717 from teto/luazip

Luazip update
This commit is contained in:
Matthieu Coudron 2019-06-06 10:03:43 +09:00 committed by GitHub
commit 7a35dcef0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 55 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

@ -1,28 +0,0 @@
{ pkgs, stdenv, fetchurl, lua5_1, zziplib }:
stdenv.mkDerivation rec {
version = "1.2.3";
name = "lua-zip-${version}";
isLibrary = true;
src = fetchurl {
url = "https://github.com/luaforge/luazip/archive/0b8f5c958e170b1b49f05bc267bc0351ad4dfc44.zip";
sha256 = "beb9260d606fdd5304aa958d95f0d3c20be7ca0a2cff44e7b75281c138a76a50";
};
buildInputs = [ pkgs.unzip lua5_1 zziplib ];
preBuild = ''
makeFlagsArray=(
PREFIX=$out
LUA_LIBDIR="$out/lib/lua/${lua5_1.luaversion}"
LUA_INC="-I${lua5_1}/include");
'';
patches = [ ./zip.patch ];
meta = {
homepage = https://github.com/luaforge/luazip;
hydraPlatforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.mit;
};
}

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";