2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, lua
|
|
|
|
, makeSetupHook
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
# defined in trivial-builders.nix
|
|
|
|
# imported as wrapLua in lua-packages.nix and passed to build-lua-derivation to be used as buildInput
|
|
|
|
makeSetupHook {
|
2021-09-18 10:52:07 +00:00
|
|
|
deps = makeWrapper;
|
|
|
|
substitutions.executable = lua.interpreter;
|
|
|
|
substitutions.lua = lua;
|
|
|
|
substitutions.LuaPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
|
|
|
substitutions.LuaCPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
2020-04-24 23:36:52 +00:00
|
|
|
} ./wrap.sh
|
|
|
|
|