buildLuaPackage: set makeFlags directly instead of through preBuild
So that lua packages can override it without having to resort to setting makeFlagsArray in preBuild.
This commit is contained in:
parent
2c21f3deeb
commit
df5691d677
|
@ -5,14 +5,13 @@ lua:
|
||||||
if disabled then
|
if disabled then
|
||||||
throw "${attrs.name} not supported by interpreter lua-${lua.luaversion}"
|
throw "${attrs.name} not supported by interpreter lua-${lua.luaversion}"
|
||||||
else
|
else
|
||||||
lua.stdenv.mkDerivation ({
|
lua.stdenv.mkDerivation (
|
||||||
|
{
|
||||||
preBuild = ''
|
makeFlags = [
|
||||||
makeFlagsArray=(
|
"PREFIX=$(out)"
|
||||||
PREFIX=$out
|
"LUA_LIBDIR=$(out)/lib/lua/${lua.luaversion}"
|
||||||
LUA_LIBDIR="$out/lib/lua/${lua.luaversion}"
|
"LUA_INC=-I${lua}/include"
|
||||||
LUA_INC="-I${lua}/include");
|
];
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
attrs
|
attrs
|
||||||
|
|
Loading…
Reference in a new issue