summary refs log blame commit diff
path: root/pkgs/development/interpreters/lua-5/wrap-lua.nix
blob: 049afcd6116d91b1ee4ed2312c2dfe7cd8924f94 (plain) (tree)
1
2
3
4
5
6
7
8
9





               


                                                                                                     




                                                                                 

           
{ 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 {
  deps = makeWrapper;
  substitutions.executable = lua.interpreter;
  substitutions.lua = lua;
  substitutions.LuaPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
  substitutions.LuaCPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
} ./wrap.sh