Unverified Commit 438fb6de authored by Jan Tojnar's avatar Jan Tojnar Committed by GitHub
Browse files

Merge pull request #163986 from drupol/php/add-phive

php.packages.phive: init at 0.15.0
parents 1900db5c 40195e1c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,10 +16,12 @@ mkDerivation {
  nativeBuildInputs = [ makeWrapper ];

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    install -D $src $out/libexec/box/box.phar
    makeWrapper ${php}/bin/php $out/bin/box \
      --add-flags "-d phar.readonly=0 $out/libexec/box/box.phar"
    runHook postInstall
  '';

  meta = with lib; {
+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ mkDerivation rec {
  nativeBuildInputs = [ makeWrapper installShellFiles ];

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    install -D $src $out/libexec/deployer/deployer.phar
    makeWrapper ${php}/bin/php $out/bin/dep --add-flags "$out/libexec/deployer/deployer.phar"
@@ -22,6 +23,7 @@ mkDerivation rec {
    installShellCompletion --cmd dep \
      --bash <($out/bin/dep autocomplete --install) \
      --zsh <($out/bin/dep autocomplete --install)
    runHook postInstall
  '';

  meta = with lib; {
+2 −0
Original line number Diff line number Diff line
@@ -16,10 +16,12 @@ mkDerivation {
  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; {
+31 −0
Original line number Diff line number Diff line
{ 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;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -16,10 +16,12 @@ mkDerivation {
  nativeBuildInputs = [ makeWrapper ];

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    install -D $src $out/libexec/php-cs-fixer/php-cs-fixer.phar
    makeWrapper ${php}/bin/php $out/bin/php-cs-fixer \
      --add-flags "$out/libexec/php-cs-fixer/php-cs-fixer.phar"
    runHook postInstall
  '';

  meta = with lib; {
Loading