buildLuaPackage: pass propagatedBuildInputs to final derivation (#108311)
propagatedBuildInputs was completely overridden in the process
This commit is contained in:
parent
bfa497bc2b
commit
beef4b95a9
|
@ -1,6 +1,9 @@
|
||||||
{ lua, writeText, toLuaModule }:
|
{ lua, writeText, toLuaModule }:
|
||||||
|
|
||||||
{ disabled ? false, ... } @ attrs:
|
{ disabled ? false
|
||||||
|
, propagatedBuildInputs ? [ ]
|
||||||
|
, ...
|
||||||
|
} @ attrs:
|
||||||
|
|
||||||
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}"
|
||||||
|
@ -18,7 +21,7 @@ else
|
||||||
//
|
//
|
||||||
{
|
{
|
||||||
name = "lua${lua.luaversion}-" + attrs.name;
|
name = "lua${lua.luaversion}-" + attrs.name;
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = propagatedBuildInputs ++ [
|
||||||
lua # propagate it for its setup-hook
|
lua # propagate it for its setup-hook
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue