phpPackages: sort packages alphabetically
This commit is contained in:
parent
4a11ce7f26
commit
94e1807eeb
|
@ -32,6 +32,62 @@ let
|
|||
sha256 = "0abccvwif1pih222lbj2z4cf9ibciz48xj35lfixyry163vabkck";
|
||||
};
|
||||
|
||||
box = pkgs.stdenv.mkDerivation rec {
|
||||
name = "box-${version}";
|
||||
version = "2.7.5";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/box-project/box2/releases/download/${version}/box-${version}.phar";
|
||||
sha256 = "1zmxdadrv0i2l8cz7xb38gnfmfyljpsaz2nnkjzqzksdmncbgd18";
|
||||
};
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
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"
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "An application for building and managing Phars";
|
||||
license = licenses.mit;
|
||||
homepage = https://box-project.github.io/box2/;
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
};
|
||||
};
|
||||
|
||||
composer = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "composer";
|
||||
version = "1.8.4";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://getcomposer.org/download/${version}/composer.phar";
|
||||
sha256 = "12h5vqwhklxvwrplggzjl21n6kb972pwkj9ivmn2vbxyixn848hp";
|
||||
};
|
||||
|
||||
unpackPhase = ":";
|
||||
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -D $src $out/libexec/composer/composer.phar
|
||||
makeWrapper ${php}/bin/php $out/bin/composer \
|
||||
--add-flags "$out/libexec/composer/composer.phar" \
|
||||
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.unzip ]}
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Dependency Manager for PHP";
|
||||
license = licenses.mit;
|
||||
homepage = https://getcomposer.org/;
|
||||
maintainers = with maintainers; [ globin offline ];
|
||||
};
|
||||
};
|
||||
|
||||
couchbase = buildPecl rec {
|
||||
name = "couchbase-${version}";
|
||||
version = "2.6.0";
|
||||
|
@ -73,21 +129,6 @@ let
|
|||
];
|
||||
};
|
||||
|
||||
php_excel = buildPecl rec {
|
||||
name = "php_excel-${version}";
|
||||
version = "1.0.2";
|
||||
phpVersion = "php7";
|
||||
|
||||
buildInputs = [ pkgs.libxl ];
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/iliaal/php_excel/releases/download/Excel-1.0.2-PHP7/excel-${version}-${phpVersion}.tgz";
|
||||
sha256 = "0dpvih9gpiyh1ml22zi7hi6kslkilzby00z1p8x248idylldzs2n";
|
||||
};
|
||||
|
||||
configureFlags = [ "--with-excel" "--with-libxl-incdir=${pkgs.libxl}/include_c" "--with-libxl-libdir=${pkgs.libxl}/lib" ];
|
||||
};
|
||||
|
||||
igbinary = buildPecl {
|
||||
name = "igbinary-2.0.8";
|
||||
|
||||
|
@ -100,12 +141,6 @@ let
|
|||
sha256 = "105nyn703k9p9c7wwy6npq7xd9mczmmlhyn0gn2v2wz0f88spjxs";
|
||||
};
|
||||
|
||||
mailparse = assert !isPhp73; buildPecl {
|
||||
name = "mailparse-3.0.2";
|
||||
|
||||
sha256 = "0fw447ralqihsjnn0fm2hkaj8343cvb90v0d1wfclgz49256y6nq";
|
||||
};
|
||||
|
||||
imagick = buildPecl {
|
||||
name = "imagick-3.4.3";
|
||||
sha256 = "0z2nc92xfc5axa9f2dy95rmsd2c81q8cs1pm4anh0a50x9g5ng0z";
|
||||
|
@ -114,6 +149,12 @@ let
|
|||
buildInputs = [ (if isPhp73 then pkgs.pcre2 else pkgs.pcre) ];
|
||||
};
|
||||
|
||||
mailparse = assert !isPhp73; buildPecl {
|
||||
name = "mailparse-3.0.2";
|
||||
|
||||
sha256 = "0fw447ralqihsjnn0fm2hkaj8343cvb90v0d1wfclgz49256y6nq";
|
||||
};
|
||||
|
||||
memcached = buildPecl rec {
|
||||
version = "3.1.3";
|
||||
name = "memcached-${version}";
|
||||
|
@ -146,139 +187,12 @@ let
|
|||
sha256 = "0d4p1gpl8gkzdiv860qzxfz250ryf0wmjgyc8qcaaqgkdyh5jy5p";
|
||||
};
|
||||
|
||||
sqlsrv = buildPecl rec {
|
||||
name = "sqlsrv-5.6.1";
|
||||
sha256 = "0ial621zxn9zvjh7k1h755sm2lc9aafc389yxksqcxcmm7kqmd0a";
|
||||
buildInputs = [ pkgs.unixODBC ];
|
||||
};
|
||||
|
||||
pdo_sqlsrv = buildPecl rec {
|
||||
name = "pdo_sqlsrv-5.6.1";
|
||||
sha256 = "02ill1iqffa5fha9iz4y91823scml24ikfk8pn90jyycfwv07x6a";
|
||||
buildInputs = [ pkgs.unixODBC ];
|
||||
};
|
||||
|
||||
xdebug = buildPecl rec {
|
||||
version = "2.7.1";
|
||||
name = "xdebug-${version}";
|
||||
|
||||
sha256 = "1hr4gy87a3gp682ggwp831xk1fxasil9wan8cxv23q3m752x3sdp";
|
||||
|
||||
doCheck = true;
|
||||
checkTarget = "test";
|
||||
};
|
||||
|
||||
yaml = buildPecl {
|
||||
name = "yaml-2.0.4";
|
||||
|
||||
sha256 = "1036zhc5yskdfymyk8jhwc34kvkvsn5kaf50336153v4dqwb11lp";
|
||||
|
||||
configureFlags = [
|
||||
"--with-yaml=${pkgs.libyaml}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
};
|
||||
|
||||
zmq = assert !isPhp73; buildPecl {
|
||||
name = "zmq-1.1.3";
|
||||
|
||||
sha256 = "1kj487vllqj9720vlhfsmv32hs2dy2agp6176mav6ldx31c3g4n4";
|
||||
|
||||
configureFlags = [
|
||||
"--with-zmq=${pkgs.zeromq}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
};
|
||||
|
||||
pthreads = assert (pkgs.config.php.zts or false); buildPecl {
|
||||
name = "pthreads-3.1.5";
|
||||
sha256 = "1ziap0py3zrc7qj9lw4nzq6wx1viyj8v9y1babchizzan014x6p5";
|
||||
meta.broken = true;
|
||||
};
|
||||
|
||||
redis = buildPecl {
|
||||
name = "redis-4.2.0";
|
||||
sha256 = "105k2rfz97svrqzdhd0a0668mn71c8v0j7hks95832fsvn5dhmbn";
|
||||
};
|
||||
|
||||
v8 = buildPecl rec {
|
||||
version = "0.2.2";
|
||||
name = "v8-${version}";
|
||||
|
||||
sha256 = "103nys7zkpi1hifqp9miyl0m1mn07xqshw3sapyz365nb35g5q71";
|
||||
|
||||
buildInputs = [ pkgs.v8_6_x ];
|
||||
configureFlags = [ "--with-v8=${pkgs.v8_6_x}" ];
|
||||
};
|
||||
|
||||
v8js = assert !isPhp73; buildPecl rec {
|
||||
version = "2.1.0";
|
||||
name = "v8js-${version}";
|
||||
|
||||
sha256 = "0g63dyhhicngbgqg34wl91nm3556vzdgkq19gy52gvmqj47rj6rg";
|
||||
|
||||
buildInputs = [ pkgs.v8_6_x ];
|
||||
configureFlags = [ "--with-v8js=${pkgs.v8_6_x}" ];
|
||||
};
|
||||
|
||||
composer = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "composer";
|
||||
version = "1.8.4";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://getcomposer.org/download/${version}/composer.phar";
|
||||
sha256 = "12h5vqwhklxvwrplggzjl21n6kb972pwkj9ivmn2vbxyixn848hp";
|
||||
};
|
||||
|
||||
unpackPhase = ":";
|
||||
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -D $src $out/libexec/composer/composer.phar
|
||||
makeWrapper ${php}/bin/php $out/bin/composer \
|
||||
--add-flags "$out/libexec/composer/composer.phar" \
|
||||
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.unzip ]}
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Dependency Manager for PHP";
|
||||
license = licenses.mit;
|
||||
homepage = https://getcomposer.org/;
|
||||
maintainers = with maintainers; [ globin offline ];
|
||||
};
|
||||
};
|
||||
|
||||
box = pkgs.stdenv.mkDerivation rec {
|
||||
name = "box-${version}";
|
||||
version = "2.7.5";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/box-project/box2/releases/download/${version}/box-${version}.phar";
|
||||
sha256 = "1zmxdadrv0i2l8cz7xb38gnfmfyljpsaz2nnkjzqzksdmncbgd18";
|
||||
};
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
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"
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "An application for building and managing Phars";
|
||||
license = licenses.mit;
|
||||
homepage = https://box-project.github.io/box2/;
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
};
|
||||
};
|
||||
|
||||
php-cs-fixer = pkgs.stdenv.mkDerivation rec {
|
||||
name = "php-cs-fixer-${version}";
|
||||
version = "2.14.0";
|
||||
|
@ -339,31 +253,19 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
phpcs = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "phpcs";
|
||||
version = "3.4.1";
|
||||
php_excel = buildPecl rec {
|
||||
name = "php_excel-${version}";
|
||||
version = "1.0.2";
|
||||
phpVersion = "php7";
|
||||
|
||||
buildInputs = [ pkgs.libxl ];
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcs.phar";
|
||||
sha256 = "07zwj8msy0awnrwmv3gcilbsj9jyrvxw0q523yf16ydv55422pl0";
|
||||
url = "https://github.com/iliaal/php_excel/releases/download/Excel-1.0.2-PHP7/excel-${version}-${phpVersion}.tgz";
|
||||
sha256 = "0dpvih9gpiyh1ml22zi7hi6kslkilzby00z1p8x248idylldzs2n";
|
||||
};
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -D $src $out/libexec/phpcs/phpcs.phar
|
||||
makeWrapper ${php}/bin/php $out/bin/phpcs \
|
||||
--add-flags "$out/libexec/phpcs/phpcs.phar"
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "PHP coding standard tool";
|
||||
license = licenses.bsd3;
|
||||
homepage = https://squizlabs.github.io/PHP_CodeSniffer/;
|
||||
maintainers = with maintainers; [ javaguirre etu ];
|
||||
};
|
||||
configureFlags = [ "--with-excel" "--with-libxl-incdir=${pkgs.libxl}/include_c" "--with-libxl-libdir=${pkgs.libxl}/lib" ];
|
||||
};
|
||||
|
||||
phpcbf = pkgs.stdenv.mkDerivation rec {
|
||||
|
@ -393,6 +295,33 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
phpcs = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "phpcs";
|
||||
version = "3.4.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcs.phar";
|
||||
sha256 = "07zwj8msy0awnrwmv3gcilbsj9jyrvxw0q523yf16ydv55422pl0";
|
||||
};
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -D $src $out/libexec/phpcs/phpcs.phar
|
||||
makeWrapper ${php}/bin/php $out/bin/phpcs \
|
||||
--add-flags "$out/libexec/phpcs/phpcs.phar"
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "PHP coding standard tool";
|
||||
license = licenses.bsd3;
|
||||
homepage = https://squizlabs.github.io/PHP_CodeSniffer/;
|
||||
maintainers = with maintainers; [ javaguirre etu ];
|
||||
};
|
||||
};
|
||||
|
||||
phpstan = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "phpstan";
|
||||
version = "0.11.5";
|
||||
|
@ -452,4 +381,75 @@ let
|
|||
maintainers = with maintainers; [ caugner ];
|
||||
};
|
||||
};
|
||||
|
||||
pthreads = assert (pkgs.config.php.zts or false); buildPecl {
|
||||
name = "pthreads-3.1.5";
|
||||
sha256 = "1ziap0py3zrc7qj9lw4nzq6wx1viyj8v9y1babchizzan014x6p5";
|
||||
meta.broken = true;
|
||||
};
|
||||
|
||||
redis = buildPecl {
|
||||
name = "redis-4.2.0";
|
||||
sha256 = "105k2rfz97svrqzdhd0a0668mn71c8v0j7hks95832fsvn5dhmbn";
|
||||
};
|
||||
|
||||
sqlsrv = buildPecl rec {
|
||||
name = "sqlsrv-5.6.1";
|
||||
sha256 = "0ial621zxn9zvjh7k1h755sm2lc9aafc389yxksqcxcmm7kqmd0a";
|
||||
buildInputs = [ pkgs.unixODBC ];
|
||||
};
|
||||
|
||||
v8 = buildPecl rec {
|
||||
version = "0.2.2";
|
||||
name = "v8-${version}";
|
||||
|
||||
sha256 = "103nys7zkpi1hifqp9miyl0m1mn07xqshw3sapyz365nb35g5q71";
|
||||
|
||||
buildInputs = [ pkgs.v8_6_x ];
|
||||
configureFlags = [ "--with-v8=${pkgs.v8_6_x}" ];
|
||||
};
|
||||
|
||||
v8js = assert !isPhp73; buildPecl rec {
|
||||
version = "2.1.0";
|
||||
name = "v8js-${version}";
|
||||
|
||||
sha256 = "0g63dyhhicngbgqg34wl91nm3556vzdgkq19gy52gvmqj47rj6rg";
|
||||
|
||||
buildInputs = [ pkgs.v8_6_x ];
|
||||
configureFlags = [ "--with-v8js=${pkgs.v8_6_x}" ];
|
||||
};
|
||||
|
||||
xdebug = buildPecl rec {
|
||||
version = "2.7.1";
|
||||
name = "xdebug-${version}";
|
||||
|
||||
sha256 = "1hr4gy87a3gp682ggwp831xk1fxasil9wan8cxv23q3m752x3sdp";
|
||||
|
||||
doCheck = true;
|
||||
checkTarget = "test";
|
||||
};
|
||||
|
||||
yaml = buildPecl {
|
||||
name = "yaml-2.0.4";
|
||||
|
||||
sha256 = "1036zhc5yskdfymyk8jhwc34kvkvsn5kaf50336153v4dqwb11lp";
|
||||
|
||||
configureFlags = [
|
||||
"--with-yaml=${pkgs.libyaml}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
};
|
||||
|
||||
zmq = assert !isPhp73; buildPecl {
|
||||
name = "zmq-1.1.3";
|
||||
|
||||
sha256 = "1kj487vllqj9720vlhfsmv32hs2dy2agp6176mav6ldx31c3g4n4";
|
||||
|
||||
configureFlags = [
|
||||
"--with-zmq=${pkgs.zeromq}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
};
|
||||
}; in self
|
||||
|
|
Loading…
Reference in New Issue