Added luaPackages, moved lua sockets and lua filesystem to luaPackages, fixed mudlet deps

This commit is contained in:
wyvie
2014-09-19 21:40:37 +02:00
committed by Domen Kožar
parent 0bc83f656a
commit e6eb51496b
4 changed files with 101 additions and 10 deletions

View File

@@ -0,0 +1,23 @@
lua:
{ buildInputs ? [], disabled ? false, ... } @ attrs:
assert !disabled;
lua.stdenv.mkDerivation ({
preBuild = ''
makeFlagsArray=(
PREFIX=$out
LUA_LIBDIR="$out/lib/lua/${lua.luaversion}"
LUA_INC="-I${lua}/include");
'';
}
//
attrs
//
{
name = "lua${lua.luaversion}-" + attrs.name;
buildInputs = buildInputs ++ [ lua ];
}
)