phpPackages.phan: add versionCheckHook

This commit is contained in:
Piotr Kwiecinski
2026-01-18 18:07:01 +01:00
parent 5aa0015983
commit 9fed49d6d6
@@ -2,6 +2,7 @@
lib,
fetchFromGitHub,
php,
versionCheckHook,
}:
(php.withExtensions ({ enabled, all }: enabled ++ (with all; [ ast ]))).buildComposerProject2
@@ -18,6 +19,10 @@
vendorHash = "sha256-k/ExFSr0veKYURu66HmYaNHPubAAKH5mgIPXzcpMbPc=";
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
description = "Static analyzer for PHP";
homepage = "https://github.com/phan/phan";