2019-02-04 12:30:58 +01: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-12 00:01:49 +02:00
|
|
|
deps = makeWrapper;
|
|
|
|
substitutions.executable = lua.interpreter;
|
|
|
|
substitutions.lua = lua;
|
|
|
|
substitutions.LuaPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
|
|
|
substitutions.LuaCPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
2019-02-04 12:30:58 +01:00
|
|
|
} ./wrap.sh
|
|
|
|
|