diff options
author | Elis Hirwing <elis@hirwing.se> | 2022-02-28 08:06:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 08:06:25 +0100 |
commit | 4c419ef1c68f5ba3424d4cff7c5ea3409e07da71 (patch) | |
tree | cd85291cd1b8fbb196e79277b8b73092a742e50e /pkgs/development/php-packages | |
parent | 8a9421f0285d99b1f3cf19eb449a262c8cadf017 (diff) | |
parent | cdfd5b47fc8cf838dd0941f05b549b4992ede451 (diff) | |
download | nixlib-4c419ef1c68f5ba3424d4cff7c5ea3409e07da71.tar nixlib-4c419ef1c68f5ba3424d4cff7c5ea3409e07da71.tar.gz nixlib-4c419ef1c68f5ba3424d4cff7c5ea3409e07da71.tar.bz2 nixlib-4c419ef1c68f5ba3424d4cff7c5ea3409e07da71.tar.lz nixlib-4c419ef1c68f5ba3424d4cff7c5ea3409e07da71.tar.xz nixlib-4c419ef1c68f5ba3424d4cff7c5ea3409e07da71.tar.zst nixlib-4c419ef1c68f5ba3424d4cff7c5ea3409e07da71.zip |
Merge pull request #161713 from drupol/feat/add-phing
php.packages.phing: init at 2.17.1
Diffstat (limited to 'pkgs/development/php-packages')
-rw-r--r-- | pkgs/development/php-packages/phing/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/php-packages/phing/default.nix b/pkgs/development/php-packages/phing/default.nix new file mode 100644 index 000000000000..0b2e5ff8c589 --- /dev/null +++ b/pkgs/development/php-packages/phing/default.nix @@ -0,0 +1,31 @@ +{ mkDerivation, fetchurl, makeWrapper, lib, php }: +let + pname = "phing"; + version = "2.17.1"; +in +mkDerivation { + inherit pname version; + + src = fetchurl { + url = "https://www.phing.info/get/phing-${version}.phar"; + sha256 = "sha256-Sf2fdy9b1wmXEDA3S4CRksH/DhAIirIy6oekWE1TNjE="; + }; + + dontUnpack = true; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + 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" + ''; + + 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; + }; +} |