From b7042dc36ab6f812068a59c0dd9fb459841a93f4 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 18 Dec 2022 12:00:00 +0000 Subject: [PATCH] buildLuaPackage: adapt to native check inputs --- pkgs/development/interpreters/lua-5/build-lua-package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/interpreters/lua-5/build-lua-package.nix b/pkgs/development/interpreters/lua-5/build-lua-package.nix index a15a12dd284d..c86e71ad366b 100644 --- a/pkgs/development/interpreters/lua-5/build-lua-package.nix +++ b/pkgs/development/interpreters/lua-5/build-lua-package.nix @@ -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');