depot/third_party/nixpkgs/pkgs/development/interpreters/lua-5/wrap-lua.nix

15 lines
348 B
Nix
Raw Normal View History

{ 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