Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ mkDerivation, fetchurl, makeWrapper, lib, php }: 2 3let 4 pname = "phing"; 5 version = "2.17.4"; 6in 7mkDerivation { 8 inherit pname version; 9 10 src = fetchurl { 11 url = "https://github.com/phingofficial/phing/releases/download/v${version}/phing-${version}.phar"; 12 sha256 = "sha256-3QZsl5QJkFX5Z4RovMtw2ELCp8Zl4xiZsIBikakJ474="; 13 }; 14 15 dontUnpack = true; 16 17 nativeBuildInputs = [ makeWrapper ]; 18 19 installPhase = '' 20 runHook preInstall 21 mkdir -p $out/bin 22 install -D $src $out/libexec/phing/phing.phar 23 makeWrapper ${php}/bin/php $out/bin/phing \ 24 --add-flags "$out/libexec/phing/phing.phar" 25 runHook postInstall 26 ''; 27 28 meta = with lib; { 29 description = "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant"; 30 license = licenses.lgpl3; 31 homepage = "https://github.com/phingofficial/phing"; 32 maintainers = with maintainers; teams.php.members; 33 }; 34}