about summary refs log tree commit diff
path: root/pkgs/development/interpreters/lua-5
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-05-09 14:09:35 -0700
committerAdam Joseph <adam@westernsemico.com>2023-05-09 14:15:07 -0700
commitd128d473187e1ef3600a02ec6bf51d630bf5bf2e (patch)
tree3fda57f7156b3125f432a93fd101a4ae549f526a /pkgs/development/interpreters/lua-5
parent2be2bef644eb3ff306941916f49bdde19f94af09 (diff)
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.
Diffstat (limited to 'pkgs/development/interpreters/lua-5')
-rw-r--r--pkgs/development/interpreters/lua-5/build-lua-package.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/lua-5/build-lua-package.nix b/pkgs/development/interpreters/lua-5/build-lua-package.nix
index eeca9b11ad056..3b49b60ca5d33 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;