php.packages.phing: init at 2.17.1

main
Pol Dellaiera 2 years ago
parent 8eb44ac8a3
commit cdfd5b47fc
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
  1. 31
      pkgs/development/php-packages/phing/default.nix
  2. 2
      pkgs/top-level/php-packages.nix

@ -0,0 +1,31 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
let
pname = "phing";
version = "2.17.1";
in
mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://www.phing.info/get/phing-${version}.phar";
sha256 = "sha256-Sf2fdy9b1wmXEDA3S4CRksH/DhAIirIy6oekWE1TNjE=";
};
dontUnpack = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
install -D $src $out/libexec/phing/phing.phar
makeWrapper ${php}/bin/php $out/bin/phing \
--add-flags "$out/libexec/phing/phing.phar"
'';
meta = with lib; {
description = "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant";
license = licenses.lgpl3;
homepage = "https://github.com/phingofficial/phing";
maintainers = with maintainers; teams.php.members;
};
}

@ -140,6 +140,8 @@ lib.makeScope pkgs.newScope (self: with self; {
deployer = callPackage ../development/php-packages/deployer { };
phing = callPackage ../development/php-packages/phing { };
php-cs-fixer = callPackage ../development/php-packages/php-cs-fixer { };
php-parallel-lint = callPackage ../development/php-packages/php-parallel-lint { };

Loading…
Cancel
Save