mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
88842910b5
Goal is to improve separation between packages and utilities. Can help with autocompletion/navigate nixpkgs faster. Also it will help standardize how LUA_PATH is exported across packages, so that one can more easily make lua changes across nixpkgs (for instance changing where lua modules are installed).
17 lines
469 B
Nix
17 lines
469 B
Nix
{ 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
|
|
|