From 1c5c5be21b806999b21f673e92fcf9f0613a6368 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Wed, 5 May 2021 08:19:41 -0400 Subject: [PATCH] php.packages.deployer: init at 6.8.0 --- .../php-packages/deployer/default.nix | 28 +++++++++++++++++++ pkgs/top-level/php-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/php-packages/deployer/default.nix diff --git a/pkgs/development/php-packages/deployer/default.nix b/pkgs/development/php-packages/deployer/default.nix new file mode 100644 index 000000000000..2e24a98b0bfb --- /dev/null +++ b/pkgs/development/php-packages/deployer/default.nix @@ -0,0 +1,28 @@ +{ mkDerivation, fetchurl, makeWrapper, 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 ]; + + installPhase = '' + 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" + ''; + + meta = with lib; { + description = "A deployment tool for PHP"; + license = licenses.mit; + homepage = "https://deployer.org/"; + maintainers = with maintainers; teams.php.members; + }; +} diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 3bbcb453a3c8..6aa23a22713a 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -31,6 +31,8 @@ lib.makeScope pkgs.newScope (self: with self; { composer1 = callPackage ../development/php-packages/composer/1.x.nix { }; + deployer = callPackage ../development/php-packages/deployer { }; + php-cs-fixer = callPackage ../development/php-packages/php-cs-fixer { }; php-parallel-lint = callPackage ../development/php-packages/php-parallel-lint { };