From 0859d45a0949b95c80411fa76ff11c6e986e53cc Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sun, 19 Jul 2015 23:20:12 +0200 Subject: [PATCH] luasocket: 2.0.2 -> 3.0-rc1 --- pkgs/top-level/lua-packages.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index c1b04afba38c..2a14dfb9d05c 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -172,17 +172,17 @@ let luasocket = buildLuaPackage rec { name = "socket-${version}"; - version = "2.0.2"; + version = "3.0-rc1"; src = fetchurl { - url = "http://files.luaforge.net/releases/luasocket/luasocket/luasocket-${version}/luasocket-${version}.tar.gz"; - sha256 = "19ichkbc4rxv00ggz8gyf29jibvc2wq9pqjik0ll326rrxswgnag"; + url = "https://github.com/diegonehab/luasocket/archive/v${version}.tar.gz"; + sha256 = "0j8jx8bjicvp9khs26xjya8c495wrpb7parxfnabdqa5nnsxjrwb"; }; - disabled = isLua52; + patchPhase = '' - sed -e "s,^INSTALL_TOP_SHARE.*,INSTALL_TOP_SHARE=$out/share/lua/${lua.luaversion}," \ - -e "s,^INSTALL_TOP_LIB.*,INSTALL_TOP_LIB=$out/lib/lua/${lua.luaversion}," \ - -i config + sed -e "s,^LUAPREFIX_linux.*,LUAPREFIX_linux=$out," \ + -i src/makefile ''; + meta = { homepage = "http://w3.impa.br/~diego/software/luasocket/"; hydraPlatforms = stdenv.lib.platforms.linux;