phpactor: add versionCheckHook
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user