1{ lib
2, lua
3, makeSetupHook
4, makeWrapper
5}:
6
7with lib;
8
9# defined in trivial-builders.nix
10# imported as wrapLua in lua-packages.nix and passed to build-lua-derivation to be used as buildInput
11makeSetupHook {
12 deps = makeWrapper;
13 substitutions.executable = lua.interpreter;
14 substitutions.lua = lua;
15 substitutions.LuaPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
16 substitutions.LuaCPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
17
18} ./wrap.sh
19