diff --git a/pkgs/by-name/n9/n98-magerun2/package.nix b/pkgs/by-name/n9/n98-magerun2/package.nix index 2ea67c54771af..62a7b565b408d 100644 --- a/pkgs/by-name/n9/n98-magerun2/package.nix +++ b/pkgs/by-name/n9/n98-magerun2/package.nix @@ -2,6 +2,7 @@ lib, fetchFromGitHub, php, + versionCheckHook, }: php.buildComposerProject2 (finalAttrs: { @@ -17,6 +18,10 @@ php.buildComposerProject2 (finalAttrs: { vendorHash = "sha256-KULTijHG5717dDOfvB4yR+ztrB+mbYaosgmg8aV/GAs="; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + meta = { changelog = "https://magerun.net/category/magerun/"; description = "Swiss army knife for Magento2 developers";