2019-02-04 11:30:58 +00:00
|
|
|
{ lib
|
|
|
|
, lua
|
|
|
|
, makeSetupHook
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
2023-05-05 22:16:26 +00:00
|
|
|
# defined in trivial-builders
|
2019-02-04 11:30:58 +00:00
|
|
|
# imported as wrapLua in lua-packages.nix and passed to build-lua-derivation to be used as buildInput
|
|
|
|
makeSetupHook {
|
2023-01-18 16:29:22 +00:00
|
|
|
name = "wrap-lua-hook";
|
2023-01-01 20:10:24 +00:00
|
|
|
propagatedBuildInputs = [ makeWrapper ];
|
2021-09-11 22:01:49 +00:00
|
|
|
substitutions.executable = lua.interpreter;
|
|
|
|
substitutions.lua = lua;
|
|
|
|
substitutions.LuaPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
|
|
|
substitutions.LuaCPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
2019-02-04 11:30:58 +00:00
|
|
|
} ./wrap.sh
|