forked from mirrors/nixpkgs
luaPackages.lua-curl: init at 0.3.13
This commit is contained in:
parent
d8085b48fe
commit
e333259769
|
@ -40,6 +40,7 @@ lrexlib-pcre,,,,,,vyp
|
|||
lrexlib-posix,,,,,,
|
||||
lua-cjson,,,,,,
|
||||
lua-cmsgpack,,,,,,
|
||||
lua-curl,,,,,,
|
||||
lua-iconv,,,,,,
|
||||
lua-lsp,,,,,,
|
||||
lua-messagepack,,,,,,
|
||||
|
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue