2014-09-19 20:40:37 +01:00
|
|
|
lua:
|
|
|
|
|
|
|
|
{ buildInputs ? [], disabled ? false, ... } @ attrs:
|
|
|
|
|
2014-09-23 11:09:36 +01:00
|
|
|
if disabled then
|
|
|
|
throw "${attrs.name} not supported by interpreter lua-${lua.luaversion}"
|
|
|
|
else
|
2017-09-30 15:36:10 +01:00
|
|
|
lua.stdenv.mkDerivation (
|
|
|
|
{
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"LUA_LIBDIR=$(out)/lib/lua/${lua.luaversion}"
|
|
|
|
"LUA_INC=-I${lua}/include"
|
|
|
|
];
|
2014-09-23 11:09:36 +01:00
|
|
|
}
|
|
|
|
//
|
|
|
|
attrs
|
|
|
|
//
|
|
|
|
{
|
|
|
|
name = "lua${lua.luaversion}-" + attrs.name;
|
|
|
|
buildInputs = buildInputs ++ [ lua ];
|
|
|
|
}
|
|
|
|
)
|