n98-magerun2: 6.1.1 -> 7.1.0
Also: - update `src` and minor refactor - Context: https://github.com/netz98/n98-magerun2/pull/1281
This commit is contained in:
parent
4a97379a91
commit
79ffe616fa
|
@ -1,38 +1,45 @@
|
|||
{ stdenv, fetchFromGitHub, makeWrapper, unzip, lib, php }:
|
||||
{
|
||||
stdenv
|
||||
, fetchurl
|
||||
, makeBinaryWrapper
|
||||
, php
|
||||
, lib
|
||||
, unzip
|
||||
}:
|
||||
|
||||
let
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "n98-magerun2";
|
||||
version = "6.1.1";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
version = "7.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "netz98";
|
||||
repo = "n98-magerun2-dist";
|
||||
rev = version;
|
||||
sha256 = "sha256-D2U1kLG6sOpBHDzNQ/LbiFUknvFhK+rkOPgWvW0pNmY=";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/netz98/n98-magerun2/releases/download/${finalAttrs.version}/n98-magerun2.phar";
|
||||
hash = "sha256-DE5q1zoWZ4gJSs5JM5cr157oh5ufD1gaNt9X9vtuW/c=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
install -D $src/n98-magerun2 $out/libexec/n98-magerun2/n98-magerun2-${version}.phar
|
||||
|
||||
mkdir -p $out/bin $out/libexec/n98-magerun2
|
||||
|
||||
install -D $src $out/libexec/n98-magerun2/n98-magerun2.phar
|
||||
makeWrapper ${php}/bin/php $out/bin/n98-magerun2 \
|
||||
--add-flags "$out/libexec/n98-magerun2/n98-magerun2-${version}.phar" \
|
||||
--add-flags "$out/libexec/n98-magerun2/n98-magerun2.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/";
|
||||
meta = {
|
||||
changelog = "https://magerun.net/category/magerun/";
|
||||
maintainers = teams.php.members;
|
||||
description = "The swiss army knife for Magento2 developers";
|
||||
homepage = "https://magerun.net/";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = lib.teams.php.members;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue