buildLuaPackage: adapt to native check inputs

This commit is contained in:
Guillaume Girol 2022-12-18 12:00:00 +00:00
parent 74beb55f91
commit b7042dc36a

View File

@ -20,8 +20,8 @@
, buildInputs ? []
# Dependencies needed for running the checkPhase.
# These are added to buildInputs when doCheck = true.
, checkInputs ? []
# These are added to nativeBuildInputs when doCheck = true.
, nativeCheckInputs ? []
# propagate build dependencies so in case we have A -> B -> C,
# C can import package A propagated by B
@ -114,7 +114,7 @@ let
nativeBuildInputs = [
wrapLua
luarocks
] ++ lib.optionals doCheck ([ luarocksCheckHook ] ++ self.checkInputs);
] ++ lib.optionals doCheck ([ luarocksCheckHook ] ++ self.nativeCheckInputs);
buildInputs = buildInputs
++ (map (d: d.dep) externalDeps');