mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
d3f87fcff6
So it can be automatically updated with `nix-update`
35 lines
924 B
Nix
35 lines
924 B
Nix
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
|
|
|
|
let
|
|
pname = "phing";
|
|
version = "2.17.4";
|
|
in
|
|
mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/phingofficial/phing/releases/download/v${version}/phing-${version}.phar";
|
|
sha256 = "sha256-3QZsl5QJkFX5Z4RovMtw2ELCp8Zl4xiZsIBikakJ474=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
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; {
|
|
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;
|
|
};
|
|
}
|