From d128d473187e1ef3600a02ec6bf51d630bf5bf2e Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Tue, 9 May 2023 14:09:35 -0700 Subject: [PATCH] buildLuaPackage: fix cross buildLuaPackage accesses lua.pkgs.luarocks, which became unspliced at some point. Let's use callPackage to get it, so we can be sure it will be spliced. --- pkgs/development/interpreters/lua-5/build-lua-package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/lua-5/build-lua-package.nix b/pkgs/development/interpreters/lua-5/build-lua-package.nix index eeca9b11ad0..3b49b60ca5d 100644 --- a/pkgs/development/interpreters/lua-5/build-lua-package.nix +++ b/pkgs/development/interpreters/lua-5/build-lua-package.nix @@ -2,6 +2,7 @@ { lib , lua , wrapLua +, luarocks # Whether the derivation provides a lua module or not. , luarocksCheckHook @@ -89,7 +90,7 @@ let nativeBuildInputs = [ wrapLua - lua.pkgs.luarocks + luarocks ]; inherit doCheck extraVariables rockspecFilename knownRockspec externalDeps nativeCheckInputs;