mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
6427d04c23
which contains lua shell utilities that can be reused during the creation of an environment. Makes sense because the generation of LUA_PATH is a bit different than other ecosystems.
15 lines
348 B
Nix
15 lines
348 B
Nix
{ lib
|
|
, lua
|
|
, makeSetupHook
|
|
, makeWrapper
|
|
}:
|
|
|
|
# defined in trivial-builders
|
|
# imported as wrapLua in lua-packages.nix and passed to build-lua-derivation to be used as buildInput
|
|
makeSetupHook {
|
|
name = "wrap-lua-hook";
|
|
propagatedBuildInputs = [ makeWrapper ];
|
|
substitutions.executable = lua.interpreter;
|
|
substitutions.lua = lua;
|
|
} ./wrap.sh
|