1 # Hooks for building lua packages.
10 callPackage = lua.pkgs.callPackage;
11 luaInterpreter = lua.interpreter;
14 lua-setup-hook = LuaPathSearchPaths: LuaCPathSearchPaths:
16 hook = ./setup-hook.sh;
17 in runCommand "lua-setup-hook.sh" {
18 # hum doesn't seem to like caps !! BUG ?
19 luapathsearchpaths=lib.escapeShellArgs LuaPathSearchPaths;
20 luacpathsearchpaths=lib.escapeShellArgs LuaCPathSearchPaths;
23 substituteAllInPlace hook.sh
27 luarocksCheckHook = callPackage ({ luarocks }:
29 name = "luarocks-check-hook";
31 } ./luarocks-check-hook.sh) {};
33 # luarocks installs data in a non-overridable location. Until a proper luarocks patch,
34 # we move the files around ourselves
35 luarocksMoveDataFolder = callPackage ({ }:
37 name = "luarocks-move-rock";
39 } ./luarocks-move-data.sh) {};