Unverified Commit b7f3d0df authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

phpPackages.phing: 2.17.4 -> 3.0.0-rc6

parent d653d780
Loading
Loading
Loading
Loading
+7486 −0

File added.

Preview size limit exceeded, changes collapsed.

+20 −25
Original line number Diff line number Diff line
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
{ lib
, fetchFromGitHub
, php
}:

let
(php.withExtensions({ enabled, all }: enabled ++ (with all; [ xsl ]))).buildComposerProject (finalAttrs: {
  pname = "phing";
  version = "2.17.4";
in
mkDerivation {
  inherit pname version;
  version = "3.0.0-rc6";

  src = fetchurl {
    url = "https://github.com/phingofficial/phing/releases/download/v${version}/phing-${version}.phar";
    sha256 = "sha256-3QZsl5QJkFX5Z4RovMtw2ELCp8Zl4xiZsIBikakJ474=";
  src = fetchFromGitHub {
    owner = "phingofficial";
    repo = "phing";
    rev = finalAttrs.version;
    hash = "sha256-pOt6uQaz69WuHKYZhq6FFbjyHGrEc+Bf0Sw9uCS3Nrc=";
  };

  dontUnpack = true;
  # TODO: Open a PR against https://github.com/phingofficial/phing
  # Their `composer.lock` is out of date therefore, we need to provide one
  composerLock = ./composer.lock;
  vendorHash = "sha256-ueTbbz3FGyRcRvlcJNirHdC77Tko4RKtYMFB3+4JdnQ=";

  nativeBuildInputs = [ makeWrapper ];

  installPhase = ''
    runHook preInstall
    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"
    runHook postInstall
  '';

  meta = with lib; {
  meta = {
    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;
    license = lib.licenses.lgpl3;
    mainProgram = "phing";
    maintainers = lib.teams.php.members;
  };
}
})