From 253318213d5e2a38b4d3778108388976af00bd81 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sun, 5 Jan 2025 12:59:27 +0100 Subject: [PATCH] n98-magerun2: add versionCheckHook (cherry picked from commit b509768ce6706e6ce87eed910ac7297745c0e0a2) --- pkgs/by-name/n9/n98-magerun2/package.nix | 5 +++++ 1 file changed, 5 insertions(+) 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";