luaPackages.wrapLua: Fix the wrapper on cross (#481464)
This commit is contained in:
@@ -142,7 +142,7 @@ let
|
||||
luarocksConfig =
|
||||
let
|
||||
externalDepsGenerated = lib.filter (drv: !drv ? luaModule) (
|
||||
self.nativeBuildInputs ++ self.propagatedBuildInputs ++ self.buildInputs
|
||||
self.finalPackage.nativeBuildInputs ++ self.propagatedBuildInputs ++ self.buildInputs
|
||||
);
|
||||
|
||||
generatedConfig = luaLib.generateLuarocksConfig {
|
||||
@@ -157,7 +157,7 @@ let
|
||||
# closure, as it doesn't have a rock tree :)
|
||||
# luaLib.hasLuaModule
|
||||
requiredLuaRocks = lib.filter luaLib.hasLuaModule (
|
||||
lua.pkgs.requiredLuaModules (self.nativeBuildInputs ++ self.propagatedBuildInputs)
|
||||
lua.pkgs.requiredLuaModules (self.finalPackage.nativeBuildInputs ++ self.propagatedBuildInputs)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -65,9 +65,7 @@ rec {
|
||||
;
|
||||
|
||||
# wraps programs in $out/bin with valid LUA_PATH/LUA_CPATH
|
||||
wrapLua = callPackage ../development/interpreters/lua-5/wrap-lua.nix {
|
||||
inherit (pkgs.buildPackages) makeSetupHook makeWrapper;
|
||||
};
|
||||
wrapLua = callPackage ../development/interpreters/lua-5/wrap-lua.nix { };
|
||||
|
||||
luarocks_bootstrap = toLuaModule (callPackage ../development/tools/misc/luarocks/default.nix { });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user