2014-09-09 21:24:15 +02:00
|
|
|
{ stdenv, fetchurl, lua5 }:
|
2014-01-28 21:44:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "lua-sockets";
|
2014-01-28 21:44:42 +01:00
|
|
|
version = "2.0.2";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://files.luaforge.net/releases/luasocket/luasocket/luasocket-${version}/luasocket-${version}.tar.gz";
|
|
|
|
sha256 = "19ichkbc4rxv00ggz8gyf29jibvc2wq9pqjik0ll326rrxswgnag";
|
|
|
|
};
|
|
|
|
|
2014-09-09 21:24:15 +02:00
|
|
|
luaver = lua5.luaversion;
|
2014-01-28 21:44:42 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -e "s,^INSTALL_TOP_SHARE.*,INSTALL_TOP_SHARE=$out/share/lua/${lua5.luaversion}," \
|
|
|
|
-e "s,^INSTALL_TOP_LIB.*,INSTALL_TOP_LIB=$out/lib/lua/${lua5.luaversion}," \
|
|
|
|
-i config
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ lua5 ];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://w3.impa.br/~diego/software/luasocket/";
|
2014-08-09 15:00:06 +02:00
|
|
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
2018-01-17 06:13:23 +01:00
|
|
|
maintainers = [ ];
|
2014-01-28 21:44:42 +01:00
|
|
|
};
|
|
|
|
}
|