8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
19 lines
501 B
Nix
19 lines
501 B
Nix
{ lib
|
|
, lua
|
|
, makeSetupHook
|
|
, makeWrapper
|
|
}:
|
|
|
|
with lib;
|
|
|
|
# defined in trivial-builders.nix
|
|
# imported as wrapLua in lua-packages.nix and passed to build-lua-derivation to be used as buildInput
|
|
makeSetupHook {
|
|
deps = makeWrapper;
|
|
substitutions.executable = lua.interpreter;
|
|
substitutions.lua = lua;
|
|
substitutions.LuaPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
|
substitutions.LuaCPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
|
|
|
} ./wrap.sh
|
|
|