about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/interpreters/lua-5/wrap-lua.nix
blob: f00e0d5ac336e1cd6ab163dd394f2b1064396bca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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