mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
20 lines
501 B
Nix
20 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
|
||
|
|