Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 26 lines 626 B view raw
1# Hooks for building lua packages. 2{ lua 3, lib 4, makeSetupHook 5, findutils 6, runCommand 7}: 8 9let 10 callPackage = lua.pkgs.callPackage; 11in { 12 13 luarocksCheckHook = callPackage ({ luarocks }: 14 makeSetupHook { 15 name = "luarocks-check-hook"; 16 propagatedBuildInputs = [ luarocks ]; 17 } ./luarocks-check-hook.sh) {}; 18 19 # luarocks installs data in a non-overridable location. Until a proper luarocks patch, 20 # we move the files around ourselves 21 luarocksMoveDataFolder = callPackage ({ }: 22 makeSetupHook { 23 name = "luarocks-move-rock"; 24 propagatedBuildInputs = [ ]; 25 } ./luarocks-move-data.sh) {}; 26}