phpPackages.phan: migrate to buildComposerProject2 and add versionCheckHook; 5.5.1 -> 6.0.0 (#440374)

This commit is contained in:
Pol Dellaiera
2026-01-18 18:28:56 +00:00
committed by GitHub
+11 -5
View File
@@ -2,21 +2,27 @@
lib,
fetchFromGitHub,
php,
versionCheckHook,
}:
(php.withExtensions ({ enabled, all }: enabled ++ (with all; [ ast ]))).buildComposerProject
(php.withExtensions ({ enabled, all }: enabled ++ (with all; [ ast ]))).buildComposerProject2
(finalAttrs: {
pname = "phan";
version = "5.5.1";
version = "6.0.0";
src = fetchFromGitHub {
owner = "phan";
repo = "phan";
rev = finalAttrs.version;
hash = "sha256-G17ORkHmu6nkfJ8UrGzcaybPOKPrq1Q+LXVS56aVOZ8=";
tag = finalAttrs.version;
hash = "sha256-1qRGNDptiAdcGc1x+iLrxe9TjLGaL8EM8xuTOUNB+Ww=";
};
vendorHash = "sha256-Ake5/7IyoweC2ONDuWt9jJSbG0JbnU9lmCRu2p6uUQM=";
vendorHash = "sha256-Ro5/lA72xVIkZyuRNix77Cpeyyj1GbW5J4DzjQMq0Rc=";
composerStrictValidation = false;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
description = "Static analyzer for PHP";