2022-03-05 16:20:37 +00:00
|
|
|
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
let
|
|
|
|
pname = "phing";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.17.4";
|
2022-03-05 16:20:37 +00:00
|
|
|
in
|
|
|
|
mkDerivation {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-01-11 07:51:40 +00:00
|
|
|
url = "https://github.com/phingofficial/phing/releases/download/v${version}/phing-${version}.phar";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-3QZsl5QJkFX5Z4RovMtw2ELCp8Zl4xiZsIBikakJ474=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-03-30 09:31:56 +00:00
|
|
|
runHook preInstall
|
2022-03-05 16:20:37 +00:00
|
|
|
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"
|
2022-03-30 09:31:56 +00:00
|
|
|
runHook postInstall
|
2022-03-05 16:20:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|