Skip to content

Commit 21184f5

Browse files
committed
phpactor: add versionCheckHook
1 parent e0cdd6b commit 21184f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkgs/by-name/ph/phpactor/package.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
fetchFromGitHub,
44
installShellFiles,
55
php,
6+
versionCheckHook,
67
}:
78

89
php.buildComposerProject2 (finalAttrs: {
@@ -25,6 +26,10 @@ php.buildComposerProject2 (finalAttrs: {
2526
--bash <(php $out/bin/phpactor completion bash)
2627
'';
2728

29+
doInstallCheck = true;
30+
nativeInstallCheckInputs = [ versionCheckHook ];
31+
versionCheckProgramArg = "--version";
32+
2833
meta = {
2934
changelog = "https://github.com/phpactor/phpactor/releases/tag/${finalAttrs.version}";
3035
description = "Mainly a PHP Language Server";

0 commit comments

Comments
 (0)