phpPackages.castor: add versionCheckHook

This commit is contained in:
Pol Dellaiera
2025-03-25 08:50:06 +01:00
parent 2545d6913e
commit 9a45d1ebd3
@@ -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 = {