phpPackages.deployer: 6.8.0 -> 7.3.3
This commit is contained in:
parent
8d0197fe1e
commit
7491aa43a7
1 changed files with 17 additions and 27 deletions
|
@ -1,36 +1,26 @@
|
||||||
{ mkDerivation, fetchurl, makeWrapper, installShellFiles, lib, php }:
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, php
|
||||||
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
php.buildComposerProject (finalAttrs: {
|
||||||
pname = "deployer";
|
pname = "deployer";
|
||||||
version = "6.8.0";
|
version = "7.3.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://deployer.org/releases/v${version}/${pname}.phar";
|
owner = "deployphp";
|
||||||
sha256 = "09mxwfa7yszsiljbkxpsd4sghqngl08cn18v4g1fbsxp3ib3kxi5";
|
repo = "deployer";
|
||||||
|
rev = "v${finalAttrs.version}^";
|
||||||
|
hash = "sha256-zvK7NwIACAhWN/7D8lVY1Bv8x6xKAp/L826SovQhDYg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontUnpack = true;
|
vendorHash = "sha256-BDq2uryNWC31AEAEZJL9zGaAPbhXZ6hmfpsnr4wlixE=";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
meta = {
|
||||||
|
description = "The PHP deployment tool with support for popular frameworks out of the box";
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
mkdir -p $out/bin
|
|
||||||
install -D $src $out/libexec/deployer/deployer.phar
|
|
||||||
makeWrapper ${php}/bin/php $out/bin/dep --add-flags "$out/libexec/deployer/deployer.phar"
|
|
||||||
|
|
||||||
# fish support currently broken: https://github.com/deployphp/deployer/issues/2527
|
|
||||||
installShellCompletion --cmd dep \
|
|
||||||
--bash <($out/bin/dep autocomplete --install) \
|
|
||||||
--zsh <($out/bin/dep autocomplete --install)
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A deployment tool for PHP";
|
|
||||||
license = licenses.mit;
|
|
||||||
homepage = "https://deployer.org/";
|
homepage = "https://deployer.org/";
|
||||||
|
license = lib.licenses.mit;
|
||||||
mainProgram = "dep";
|
mainProgram = "dep";
|
||||||
maintainers = with maintainers; teams.php.members;
|
maintainers = lib.teams.php.members;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue