buildLuaPackage: adapt to native check inputs
This commit is contained in:
parent
74beb55f91
commit
b7042dc36a
1 changed files with 3 additions and 3 deletions
|
@ -20,8 +20,8 @@
|
||||||
, buildInputs ? []
|
, buildInputs ? []
|
||||||
|
|
||||||
# Dependencies needed for running the checkPhase.
|
# Dependencies needed for running the checkPhase.
|
||||||
# These are added to buildInputs when doCheck = true.
|
# These are added to nativeBuildInputs when doCheck = true.
|
||||||
, checkInputs ? []
|
, nativeCheckInputs ? []
|
||||||
|
|
||||||
# propagate build dependencies so in case we have A -> B -> C,
|
# propagate build dependencies so in case we have A -> B -> C,
|
||||||
# C can import package A propagated by B
|
# C can import package A propagated by B
|
||||||
|
@ -114,7 +114,7 @@ let
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
wrapLua
|
wrapLua
|
||||||
luarocks
|
luarocks
|
||||||
] ++ lib.optionals doCheck ([ luarocksCheckHook ] ++ self.checkInputs);
|
] ++ lib.optionals doCheck ([ luarocksCheckHook ] ++ self.nativeCheckInputs);
|
||||||
|
|
||||||
buildInputs = buildInputs
|
buildInputs = buildInputs
|
||||||
++ (map (d: d.dep) externalDeps');
|
++ (map (d: d.dep) externalDeps');
|
||||||
|
|
Loading…
Reference in a new issue