buidLuarocksPackage: add a checkPhase

This commit is contained in:
Matthieu Coudron 2020-02-26 01:13:29 +01:00
parent 6eeb434b33
commit 006aeb5704

View File

@ -230,6 +230,13 @@ builtins.removeAttrs attrs ["disabled" "checkInputs" "externalDeps" "extraVariab
runHook postInstall runHook postInstall
''; '';
checkPhase = attrs.checkPhase or ''
runHook preCheck
$LUAROCKS test
runHook postCheck
'';
passthru = { passthru = {
inherit lua; # The lua interpreter inherit lua; # The lua interpreter
inherit externalDeps; inherit externalDeps;