uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
35
pkgs/development/php-packages/deployer/default.nix
Normal file
35
pkgs/development/php-packages/deployer/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ mkDerivation, fetchurl, makeWrapper, installShellFiles, lib, php }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "deployer";
|
||||
version = "6.8.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://deployer.org/releases/v${version}/${pname}.phar";
|
||||
sha256 = "09mxwfa7yszsiljbkxpsd4sghqngl08cn18v4g1fbsxp3ib3kxi5";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||
|
||||
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/";
|
||||
maintainers = with maintainers; teams.php.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue