phpPackages.phing: 2.17.4 -> 3.0.0-rc6

This commit is contained in:
Pol Dellaiera
2024-02-20 12:24:41 +01:00
parent d653d7800f
commit b7f3d0df8f
2 changed files with 7506 additions and 25 deletions
File diff suppressed because it is too large Load Diff
+20 -25
View File
@@ -1,34 +1,29 @@
{ 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;
};
}
})