Unverified Commit 2545d691 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

phpactor: add `versionCheckHook` (#392985)

parents fa702eea 21184f50
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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";