mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 04:17:53 +00:00
php.packages.phive: init at 0.15.0
This commit is contained in:
parent
a4684b5462
commit
a6aceda140
31
pkgs/development/php-packages/phive/default.nix
Normal file
31
pkgs/development/php-packages/phive/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -144,6 +144,8 @@ lib.makeScope pkgs.newScope (self: with self; {
|
||||
|
||||
phing = callPackage ../development/php-packages/phing { };
|
||||
|
||||
phive = callPackage ../development/php-packages/phive { };
|
||||
|
||||
php-cs-fixer = callPackage ../development/php-packages/php-cs-fixer { };
|
||||
|
||||
php-parallel-lint = callPackage ../development/php-packages/php-parallel-lint { };
|
||||
|
Loading…
Reference in New Issue
Block a user