1{
2 lib,
3 fetchgit,
4 php,
5 versionCheckHook,
6}:
7
8(php.withExtensions ({ enabled, all }: enabled ++ (with all; [ xsl ]))).buildComposerProject2
9 (finalAttrs: {
10 pname = "phing";
11 version = "3.1.0";
12
13 # Upstream no longer provides the composer.lock in their release artifact
14 src = fetchgit {
15 url = "https://github.com/phingofficial/phing";
16 tag = finalAttrs.version;
17 hash = "sha256-gY6ocmkd7eJIMaBrewfxYL7gTr+1qNHTkuAp+w9ApUU=";
18 };
19
20 vendorHash = "sha256-3frpoQzHtJA2/jJpZT+yIRatEwiY6LIUGzEZBa8hXbM=";
21
22 nativeInstallCheckInputs = [
23 versionCheckHook
24 ];
25 versionCheckProgramArg = "-version";
26 doInstallCheck = true;
27
28 meta = {
29 description = "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant";
30 changelog = "https://github.com/phingofficial/phing/releases/tag/${finalAttrs.version}";
31 homepage = "https://github.com/phingofficial/phing";
32 license = lib.licenses.lgpl3;
33 mainProgram = "phing";
34 teams = [ lib.teams.php ];
35 };
36 })