n98-magerun2: use tag; add versionCheckHook (#371107)

This commit is contained in:
Pol Dellaiera
2025-01-05 13:14:33 +01:00
committed by GitHub
+6 -1
View File
@@ -2,6 +2,7 @@
lib,
fetchFromGitHub,
php,
versionCheckHook,
}:
php.buildComposerProject2 (finalAttrs: {
@@ -11,12 +12,16 @@ php.buildComposerProject2 (finalAttrs: {
src = fetchFromGitHub {
owner = "netz98";
repo = "n98-magerun2";
rev = finalAttrs.version;
tag = finalAttrs.version;
hash = "sha256-1wHRzh/Fdxdgx70fIPNOIpqBX9IvYPJnV7CZ5hLQ0qE=";
};
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";