1{ 2 fetchFromGitHub, 3 lib, 4 php, 5 versionCheckHook, 6}: 7 8php.buildComposerProject2 (finalAttrs: { 9 pname = "php-parallel-lint"; 10 version = "1.4.0"; 11 12 src = fetchFromGitHub { 13 owner = "php-parallel-lint"; 14 repo = "PHP-Parallel-Lint"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-g5e/yfvfq55MQDux3JRDvhaYEay68Q4u1VfIwDRgv7I="; 17 }; 18 19 composerLock = ./composer.lock; 20 vendorHash = "sha256-ySdLlqlGKZ6LgmAOBMkBNoCAqWrgMwE/Cj6ZEPEsCko="; 21 22 nativeInstallCheckInputs = [ versionCheckHook ]; 23 doInstallCheck = true; 24 versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}"; 25 26 meta = { 27 description = "Tool to check syntax of PHP files faster than serial check with fancier output"; 28 homepage = "https://github.com/php-parallel-lint/PHP-Parallel-Lint"; 29 license = lib.licenses.bsd2; 30 mainProgram = "parallel-lint"; 31 teams = [ lib.teams.php ]; 32 }; 33})