lua5 sockets: our version only works with lua 5.1

This commit is contained in:
Vladimír Čunát
2014-09-09 21:49:35 +02:00
parent 15cb79e48e
commit d09736b7c1
3 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, lua5, lua5_sockets, openssl }:
{ stdenv, fetchurl, lua5, openssl }:
stdenv.mkDerivation rec {
version = "0.5";
@@ -1,4 +1,4 @@
{stdenv, fetchurl, lua5}:
{ stdenv, fetchurl, lua5 }:
stdenv.mkDerivation rec {
name = "lua-sockets-${version}";
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "19ichkbc4rxv00ggz8gyf29jibvc2wq9pqjik0ll326rrxswgnag";
};
luaver = "5.1"; # TODO
luaver = lua5.luaversion;
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}," \