phpPackages.castor: add versionCheckHook

(cherry picked from commit 9a45d1ebd3)
This commit is contained in:
Pol Dellaiera
2025-03-25 08:50:06 +01:00
committed by github-actions[bot]
parent e0101282fd
commit e1fb884b31

View File

@@ -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 = {