at master 576 B view raw
1# Hooks for building lua packages. 2{ 3 lua, 4 makeSetupHook, 5}: 6 7let 8 callPackage = lua.pkgs.callPackage; 9in 10{ 11 12 luarocksCheckHook = callPackage ( 13 { luarocks }: 14 makeSetupHook { 15 name = "luarocks-check-hook"; 16 propagatedBuildInputs = [ luarocks ]; 17 } ./luarocks-check-hook.sh 18 ) { }; 19 20 # luarocks installs data in a non-overridable location. Until a proper luarocks patch, 21 # we move the files around ourselves 22 luarocksMoveDataFolder = makeSetupHook { 23 name = "luarocks-move-rock"; 24 propagatedBuildInputs = [ ]; 25 } ./luarocks-move-data.sh; 26}