diff --git a/pkgs/development/php-packages/castor/default.nix b/pkgs/development/php-packages/castor/default.nix index d468d0a7aa2e..648735e254ed 100644 --- a/pkgs/development/php-packages/castor/default.nix +++ b/pkgs/development/php-packages/castor/default.nix @@ -4,7 +4,7 @@ installShellFiles, php, nix-update-script, - testers, + versionCheckHook, }: php.buildComposerProject2 (finalAttrs: { @@ -30,13 +30,12 @@ php.buildComposerProject2 (finalAttrs: { --zsh <(php $out/bin/castor completion zsh) ''; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + passthru = { updateScript = nix-update-script { }; - tests.version = testers.testVersion { - command = "castor --version"; - package = php.packages.castor; - version = "v${finalAttrs.version}"; - }; }; meta = {