phpactor: add versionCheckHook (#392985)

This commit is contained in:
Pol Dellaiera
2025-03-25 08:47:56 +01:00
committed by GitHub
+5
View File
@@ -3,6 +3,7 @@
fetchFromGitHub,
installShellFiles,
php,
versionCheckHook,
}:
php.buildComposerProject2 (finalAttrs: {
@@ -25,6 +26,10 @@ php.buildComposerProject2 (finalAttrs: {
--bash <(php $out/bin/phpactor completion bash)
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
changelog = "https://github.com/phpactor/phpactor/releases/tag/${finalAttrs.version}";
description = "Mainly a PHP Language Server";