nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 943 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 Accepts "bustedFlags" as an array. 13 You can customize the call by setting "bustedFlags" and prevent the test from running by setting "dontBustedCheck" 14 */ 15 bustedCheckHook = callPackage ( 16 { busted }: 17 makeSetupHook { 18 name = "busted-check-hook"; 19 propagatedBuildInputs = [ 20 busted 21 ]; 22 } ./busted-check-hook.sh 23 ) { }; 24 25 luarocksCheckHook = callPackage ( 26 { luarocks }: 27 makeSetupHook { 28 name = "luarocks-check-hook"; 29 propagatedBuildInputs = [ luarocks ]; 30 } ./luarocks-check-hook.sh 31 ) { }; 32 33 # luarocks installs data in a non-overridable location. Until a proper luarocks patch, 34 # we move the files around ourselves 35 luarocksMoveDataFolder = makeSetupHook { 36 name = "luarocks-move-rock"; 37 propagatedBuildInputs = [ ]; 38 } ./luarocks-move-data.sh; 39}