Added luaPackages, moved lua sockets and lua filesystem to luaPackages, fixed mudlet deps
This commit is contained in:
23
pkgs/development/lua-modules/generic/default.nix
Normal file
23
pkgs/development/lua-modules/generic/default.nix
Normal 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 ];
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user