n98-magerun2: init at 6.1.1

This commit is contained in:
Fabrizio Balliano 2023-01-24 17:26:35 +00:00
parent d1c4df60f5
commit 78756462ae
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, makeWrapper, unzip, lib, php }:
let
pname = "n98-magerun2";
version = "6.1.1";
in
stdenv.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "netz98";
repo = "n98-magerun2-dist";
rev = version;
sha256 = "sha256-D2U1kLG6sOpBHDzNQ/LbiFUknvFhK+rkOPgWvW0pNmY=";
};
dontUnpack = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -D $src/n98-magerun2 $out/libexec/n98-magerun2/n98-magerun2-${version}.phar
makeWrapper ${php}/bin/php $out/bin/n98-magerun2 \
--add-flags "$out/libexec/n98-magerun2/n98-magerun2-${version}.phar" \
--prefix PATH : ${lib.makeBinPath [ unzip ]}
runHook postInstall
'';
meta = with lib; {
description = "The swiss army knife for Magento2 developers";
license = licenses.mit;
homepage = "https://magerun.net/";
changelog = "https://magerun.net/category/magerun/";
maintainers = teams.php.members;
};
}

View File

@ -530,6 +530,8 @@ with pkgs;
n98-magerun = callPackage ../development/tools/misc/n98-magerun { };
n98-magerun2 = callPackage ../development/tools/misc/n98-magerun2 { };
prisma-engines = callPackage ../development/tools/database/prisma-engines {
inherit (darwin.apple_sdk.frameworks) Security;
};