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
|
||||
throw "${attrs.name} not supported by interpreter lua-${lua.luaversion}"
|
||||
else
|
||||
lua.stdenv.mkDerivation ({
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray=(
|
||||
PREFIX=$out
|
||||
LUA_LIBDIR="$out/lib/lua/${lua.luaversion}"
|
||||
LUA_INC="-I${lua}/include");
|
||||
'';
|
||||
lua.stdenv.mkDerivation (
|
||||
{
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
"LUA_LIBDIR=$(out)/lib/lua/${lua.luaversion}"
|
||||
"LUA_INC=-I${lua}/include"
|
||||
];
|
||||
}
|
||||
//
|
||||
attrs
|
||||
|
|
Loading…
Reference in a new issue