summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/lua-5/wrap-lua.nix
blob: 373cf3444526ed39a7d029e429a4919b4b9da0f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  lib,
  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;
  meta.license = lib.licenses.mit;
} ./wrap.sh