luaPackages.lua-curl: init at 0.3.13

This commit is contained in:
K900 2023-04-09 10:24:49 +03:00
parent d8085b48fe
commit e333259769
3 changed files with 31 additions and 0 deletions

View File

@ -40,6 +40,7 @@ lrexlib-pcre,,,,,,vyp
lrexlib-posix,,,,,,
lua-cjson,,,,,,
lua-cmsgpack,,,,,,
lua-curl,,,,,,
lua-iconv,,,,,,
lua-lsp,,,,,,
lua-messagepack,,,,,,

1 name src ref server version luaversion maintainers
40 lrexlib-posix
41 lua-cjson
42 lua-cmsgpack
43 lua-curl
44 lua-iconv
45 lua-lsp
46 lua-messagepack

View File

@ -1121,6 +1121,29 @@ buildLuarocksPackage {
};
}) {};
lua-curl = callPackage({ lua, buildLuarocksPackage, fetchzip, luaOlder, luaAtLeast }:
buildLuarocksPackage {
pname = "lua-curl";
version = "0.3.13-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/lua-curl-0.3.13-1.rockspec";
sha256 = "0lz534sm35hxazf1w71hagiyfplhsvzr94i6qyv5chjfabrgbhjn";
}).outPath;
src = fetchzip {
url = "https://github.com/Lua-cURL/Lua-cURLv3/archive/v0.3.13.zip";
sha256 = "0gn59bwrnb2mvl8i0ycr6m3jmlgx86xlr9mwnc85zfhj7zhi5anp";
};
disabled = (luaOlder "5.1") || (luaAtLeast "5.5");
propagatedBuildInputs = [ lua ];
meta = {
homepage = "https://github.com/Lua-cURL";
description = "Lua binding to libcurl";
license.fullName = "MIT/X11";
};
}) {};
lua-iconv = callPackage({ fetchurl, lua, buildLuarocksPackage, luaOlder }:
buildLuarocksPackage {
pname = "lua-iconv";

View File

@ -1,6 +1,7 @@
# do not add pkgs, it messes up splicing
{ stdenv
, cmake
, curl
, cyrus_sasl
, dbus
, expat
@ -255,6 +256,12 @@ with prev;
];
});
lua-curl = prev.luaLib.overrideLuarocks prev.lua-curl (drv: {
buildInputs = [
curl
];
});
lua-iconv = prev.luaLib.overrideLuarocks prev.lua-iconv (drv: {
buildInputs = [
libiconv