commit
7a35dcef0a
@ -28,6 +28,7 @@ luabitop,,,,
|
|||||||
luaevent,,,,
|
luaevent,,,,
|
||||||
luacheck,,,,
|
luacheck,,,,
|
||||||
luaffi,,http://luarocks.org/dev,,
|
luaffi,,http://luarocks.org/dev,,
|
||||||
|
luazip,,,,
|
||||||
luuid,,,,
|
luuid,,,,
|
||||||
markdown,,,,
|
markdown,,,,
|
||||||
penlight,,,,
|
penlight,,,,
|
||||||
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
@ -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 {
|
luuid = buildLuarocksPackage {
|
||||||
pname = "luuid";
|
pname = "luuid";
|
||||||
version = "20120509-2";
|
version = "20120509-2";
|
||||||
|
@ -46,6 +46,9 @@ with super;
|
|||||||
lua-iconv = super.lua-iconv.override({
|
lua-iconv = super.lua-iconv.override({
|
||||||
buildInputs = [ pkgs.libiconv ];
|
buildInputs = [ pkgs.libiconv ];
|
||||||
});
|
});
|
||||||
|
luazip = super.luazip.override({
|
||||||
|
buildInputs = [ pkgs.zziplib ];
|
||||||
|
});
|
||||||
luv = super.luv.overrideAttrs(oa: {
|
luv = super.luv.overrideAttrs(oa: {
|
||||||
# Use system libuv instead of building local and statically linking
|
# Use system libuv instead of building local and statically linking
|
||||||
# This is a hacky way to specify -DWITH_SHARED_LIBUV=ON which
|
# This is a hacky way to specify -DWITH_SHARED_LIBUV=ON which
|
||||||
|
@ -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 {
|
luazlib = buildLuaPackage rec {
|
||||||
name = "zlib-${version}";
|
name = "zlib-${version}";
|
||||||
version = "1.1";
|
version = "1.1";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user