summaryrefslogtreecommitdiffstats
path: root/pkgs/development/php-packages
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2022-03-13 11:33:30 +0100
committerPol Dellaiera <pol.dellaiera@protonmail.com>2022-03-13 16:37:37 +0100
commita6aceda140cd6846fb9cf0338dcfeeb539c5dd31 (patch)
treebb2cdfa7af66393fd21fca0ef9a4961c17f97dc8 /pkgs/development/php-packages
parenta4684b5462b6c66dd7ad2a7dfb2e5c1fca5582e4 (diff)
php.packages.phive: init at 0.15.0
Diffstat (limited to 'pkgs/development/php-packages')
-rw-r--r--pkgs/development/php-packages/phive/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/php-packages/phive/default.nix b/pkgs/development/php-packages/phive/default.nix
new file mode 100644
index 000000000000..f564cb536922
--- /dev/null
+++ b/pkgs/development/php-packages/phive/default.nix
@@ -0,0 +1,31 @@
+{ mkDerivation, fetchurl, makeWrapper, lib, php }:
+
+mkDerivation rec {
+ pname = "phive";
+ version = "0.15.0";
+
+ src = fetchurl {
+ url = "https://github.com/phar-io/phive/releases/download/${version}/phive-${version}.phar";
+ sha256 = "sha256-crMr8d5nsVt7+zQ5xPeph/JXmTEn6jJFVtp3mOgylB4=";
+ };
+
+ dontUnpack = true;
+
+ nativeBuildInputs = [ makeWrapper ];
+
+ installPhase = ''
+ runHook preInstall
+ mkdir -p $out/bin
+ install -D $src $out/libexec/phive/phive.phar
+ makeWrapper ${php}/bin/php $out/bin/phive \
+ --add-flags "$out/libexec/phive/phive.phar"
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ description = "The Phar Installation and Verification Environment (PHIVE)";
+ homepage = "https://github.com/phar-io/phive";
+ license = licenses.bsd3;
+ maintainers = with maintainers; teams.php.members;
+ };
+}