Files
nixpkgs/pkgs/development/interpreters/lua-5/wrap-lua.nix
Matthieu Coudron 5e40587385 buildLuarocksPackage: fix cross compilation wrapping (#481511)
(cherry picked from commit ca45c71bfc)
It looks like the rebuild costs won't be high really.
2026-03-13 13:47:09 +01:00

17 lines
528 B
Nix

{
lua,
makeSetupHook,
makeWrapper,
}:
# defined in trivial-builders
# imported as wrapLua in lua-packages.nix and passed to build-lua-derivation to be used as buildInput
makeSetupHook {
name = "wrap-lua-hook";
propagatedBuildInputs = [ makeWrapper ];
substitutions.luaBuild = lua.luaOnBuildForHost;
substitutions.luaHost = lua.luaOnHostForHost;
substitutions.luarocksBuild = lua.luaOnBuildForHost.pkgs.luarocks_bootstrap;
substitutions.luarocksHost = lua.luaOnHostForHost.pkgs.luarocks_bootstrap;
} ./wrap.sh