Merge pull request #207605 from drupol/php/bump-packages-version

PHP: Bump versions
This commit is contained in:
Thomas Gerbet 2022-12-29 19:22:03 +01:00 committed by GitHub
commit 1fc0a0f6c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 182 additions and 67 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, lib, php, autoreconfHook, fetchurl, re2c }:
{ stdenv, lib, php, autoreconfHook, fetchurl, re2c, nix-update-script }:
{ pname
, version
@ -12,6 +12,7 @@
url = "https://pecl.php.net/get/${pname}-${version}.tgz";
inherit (args) sha256;
}
, passthru ? { }
, ...
}@args:
@ -34,4 +35,12 @@ stdenv.mkDerivation (args // {
internalDeps}
'';
checkPhase = "NO_INTERACTON=yes make test";
passthru = passthru // {
# Thes flags were introduced for `nix-update` so that it can update
# PHP extensions correctly.
# See the corresponding PR: https://github.com/Mic92/nix-update/pull/123
isPhpExtension = true;
updateScript = nix-update-script {};
};
})

View File

@ -1,16 +1,24 @@
{ buildPecl, lib, rabbitmq-c }:
{ buildPecl, lib, rabbitmq-c, fetchFromGitHub }:
buildPecl {
let
version = "1.11.0";
in buildPecl {
inherit version;
pname = "amqp";
version = "1.11.0beta";
sha256 = "sha256-HbVLN6fg2htYZgAFw+IhYHP+XN8j7cTLG6S0YHHOC14=";
src = fetchFromGitHub {
owner = "php-amqp";
repo = "php-amqp";
rev = "v${version}";
sha256 = "sha256-CDhNDk78D15MtljbtyYj8euPnCruLZnc2NEHqXDX8HY=";
};
buildInputs = [ rabbitmq-c ];
AMQP_DIR = rabbitmq-c;
meta = with lib; {
changelog = "https://github.com/php-amqp/php-amqp/releases/tag/v${version}";
description = "PHP extension to communicate with any AMQP compliant server";
license = licenses.php301;
homepage = "https://github.com/php-amqp/php-amqp";

View File

@ -1,10 +1,17 @@
{ buildPecl, lib, pcre2 }:
{ buildPecl, lib, pcre2, fetchFromGitHub }:
buildPecl {
let
version = "5.1.22";
in buildPecl {
inherit version;
pname = "apcu";
version = "5.1.22";
sha256 = "sha256-AQoNj9ES4e16UqNWGR2jaWprdjGUI/ew396u6vy0Gh4=";
src = fetchFromGitHub {
owner = "krakjoe";
repo = "apcu";
rev = "v${version}";
sha256 = "sha256-L4a+/kWT95a1Km+FzFNiAaBw8enU6k4ZiCFRErjj9o8=";
};
buildInputs = [ pcre2 ];
doCheck = true;
@ -14,6 +21,7 @@ buildPecl {
outputs = [ "out" "dev" ];
meta = with lib; {
changelog = "https://github.com/krakjoe/apcu/releases/tag/v${version}";
description = "Userland cache for PHP";
license = licenses.php301;
homepage = "https://pecl.php.net/package/APCu";

View File

@ -1,12 +1,20 @@
{ buildPecl, lib }:
{ buildPecl, lib, fetchFromGitHub }:
buildPecl {
let
version = "1.1.0";
in buildPecl {
inherit version;
pname = "ast";
version = "1.1.0";
sha256 = "sha256-7j1PZ+JNguTTQIBqJAUgEuSVTSIxIpSTd2ZUJ0Q+bRM=";
src = fetchFromGitHub {
owner = "nikic";
repo = "php-ast";
rev = "v${version}";
sha256 = "sha256-e9J6O4A+8xRBlR9m4OK1kTVpzgzsviD0Eqi0iY4AgkY=";
};
meta = with lib; {
changelog = "https://github.com/nikic/php-ast/releases/tag/v${version}";
description = "Exposes the abstract syntax tree generated by PHP";
license = licenses.bsd3;
homepage = "https://pecl.php.net/package/ast";

View File

@ -1,14 +1,15 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
let
pname = "box";
version = "4.1.0";
version = "4.2.0";
in
mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://github.com/box-project/box/releases/download/${version}/box.phar";
sha256 = "sha256-DtrTsCocCpLngiEPrKBrFeU+OnND8AoI83g+Y7+zHzs=";
sha256 = "sha256-9pPhqFq9t3MKI/y6/7iCYB8ddWFrafGVcV/k+Exb+KQ=";
};
dontUnpack = true;
@ -25,6 +26,7 @@ mkDerivation {
'';
meta = with lib; {
changelog = "https://github.com/box-project/box/releases/tag/${version}";
description = "An application for building and managing Phars";
license = licenses.mit;
homepage = "https://github.com/box-project/box";

View File

@ -1,4 +1,5 @@
{ mkDerivation, fetchurl, makeWrapper, unzip, lib, php }:
let
pname = "composer";
version = "2.5.1";
@ -7,7 +8,7 @@ mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://getcomposer.org/download/${version}/composer.phar";
url = "https://github.com/composer/composer/releases/download/${version}/composer.phar";
sha256 = "sha256-8blP7hGlvWoarl13yNomnfJ8cF/MgG6/TIwub6hkXCA=";
};

View File

@ -25,6 +25,7 @@ buildPecl {
];
meta = with lib; {
changelog = "https://github.com/couchbase/php-couchbase/releases/tag/v${version}";
description = "Couchbase Server PHP extension";
license = licenses.asl20;
homepage = "https://docs.couchbase.com/php-sdk/current/project-docs/sdk-release-notes.html";

View File

@ -1,14 +1,22 @@
{ buildPecl, lib, pcre2, php }:
{ buildPecl, lib, pcre2, php, fetchFromGitHub }:
buildPecl {
let
version = "1.4.0";
in buildPecl {
inherit version;
pname = "ds";
version = "1.4.0";
sha256 = "1vwk5d27zd746767l8cvbcdr8r70v74vw0im38mlw1g85mc31fd9";
src = fetchFromGitHub {
owner = "php-ds";
repo = "ext-ds";
rev = "v${version}";
sha256 = "sha256-IqNv2jVW1Hg1hV8H9vEyLT5BWsFkGHR+WlAOHJhlW84=";
};
buildInputs = [ pcre2 ];
meta = with lib; {
changelog = "https://github.com/php-ds/ext-ds/releases/tag/v${version}";
description = "An extension providing efficient data structures for PHP";
license = licenses.mit;
homepage = "https://github.com/php-ds/ext-ds";

View File

@ -1,10 +1,18 @@
{ buildPecl, lib, gpgme, file, gnupg, php }:
{ buildPecl, lib, gpgme, file, gnupg, php, fetchFromGitHub }:
buildPecl {
let
version = "1.5.1";
in buildPecl {
inherit version;
pname = "gnupg";
version = "1.5.1";
sha256 = "sha256-qZBvRlqyNDyy8xJ+4gnHJ2Ajh0XDSHjZu8FXZIYhklI=";
src = fetchFromGitHub {
owner = "php-gnupg";
repo = "php-gnupg";
rev = "gnupg-${version}";
fetchSubmodules = true;
sha256 = "sha256-kEc0883sYgmAf1mkH0zRjHzUASnZgQvdYE6VzT5X2RI=";
};
buildInputs = [ gpgme ];
checkInputs = [ gnupg ];
@ -29,6 +37,7 @@ buildPecl {
doCheck = true;
meta = with lib; {
changelog = "https://github.com/php-gnupg/php-gnupg/releases/tag/gnupg-${version}";
broken = lib.versionOlder php.version "8.1"; # Broken on PHP older than 8.1.
description = "PHP wrapper for GpgME library that provides access to GnuPG";
license = licenses.bsd3;

View File

@ -1,11 +1,12 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
mkDerivation rec {
pname = "grumphp";
version = "1.8.1";
version = "1.15.0";
src = fetchurl {
url = "https://github.com/phpro/${pname}/releases/download/v${version}/${pname}.phar";
sha256 = "sha256-3XPMyH2F3ZfRr8DmvlBY3Z6uolhaRraQxwKIskIwPq8=";
sha256 = "sha256-EqzJb7DYZb7PnebErLVI/EZLxj0m26cniZlsu1feif0=";
};
dontUnpack = true;
@ -22,6 +23,7 @@ mkDerivation rec {
'';
meta = with lib; {
changelog = "https://github.com/phpro/grumphp/releases/tag/v${version}";
description = "A PHP code-quality tool";
homepage = "https://github.com/phpro/grumphp";
license = licenses.mit;

View File

@ -1,17 +1,23 @@
{ lib, stdenv, buildPecl, php, valgrind, pcre2 }:
{ lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub }:
let
pname = "openswoole";
version = "4.12.0";
in
buildPecl {
inherit pname version;
version = "22.0.0";
in buildPecl {
inherit version;
pname = "openswoole";
sha256 = "16fxwkjqihinzsmjbpzslf13m8yp0wnsqa2y5g0b07cf15g6qbny";
src = fetchFromGitHub {
owner = "openswoole";
repo = "swoole-src";
rev = "v${version}";
sha256 = "sha256-4Z7mBNGHXS/giSCmPpSyu9/99MEjCnoXgymDM/s1gk8=";
};
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
meta = with lib; {
changelog = "https://pecl.php.net/package/openswoole/${version}";
changelog = "https://github.com/openswoole/swoole-src/releases/tag/v${version}";
description = "Coroutine-based concurrency library and high performance programmatic server for PHP";
homepage = "https://www.openswoole.com/";
license = licenses.asl20;

View File

@ -1,14 +1,22 @@
{ buildPecl, lib, pcre2 }:
{ buildPecl, lib, php, pcre2, fetchFromGitHub }:
buildPecl {
let
version = "1.0.11";
in buildPecl {
inherit version;
pname = "pcov";
version = "1.0.11";
sha256 = "sha256-rSLmTNOvBlMwGCrBQsHDq0Dek0SCzUAPi9dgZBMKwkI=";
src = fetchFromGitHub {
owner = "krakjoe";
repo = "pcov";
rev = "v${version}";
sha256 = "sha256-lyY17Y9chpTO8oeWmDGSh0YSnipYqCuy1qmn9su5Eu8=";
};
buildInputs = [ pcre2 ];
meta = with lib; {
changelog = "https://github.com/krakjoe/pcov/releases/tag/v${version}";
description = "A self contained php-code-coverage compatible driver for PHP.";
license = licenses.php301;
homepage = "https://github.com/krakjoe/pcov";

View File

@ -1,4 +1,5 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
let
pname = "phing";
version = "2.17.4";
@ -7,7 +8,7 @@ mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://www.phing.info/get/phing-${version}.phar";
url = "https://github.com/phingofficial/phing/releases/download/v${version}/phing-${version}.phar";
sha256 = "sha256-3QZsl5QJkFX5Z4RovMtw2ELCp8Zl4xiZsIBikakJ474=";
};

View File

@ -2,11 +2,11 @@
mkDerivation rec {
pname = "phive";
version = "0.15.0";
version = "0.15.2";
src = fetchurl {
url = "https://github.com/phar-io/phive/releases/download/${version}/phive-${version}.phar";
sha256 = "sha256-crMr8d5nsVt7+zQ5xPeph/JXmTEn6jJFVtp3mOgylB4=";
sha256 = "K7B2dT7F1nL14vlql6D+fo6ewkpDnu0A/SnvlCx5Bfk=";
};
dontUnpack = true;
@ -23,6 +23,7 @@ mkDerivation rec {
'';
meta = with lib; {
changelog = "https://github.com/phar-io/phive/releases/tag/${version}";
description = "The Phar Installation and Verification Environment (PHIVE)";
homepage = "https://github.com/phar-io/phive";
license = licenses.bsd3;

View File

@ -1,14 +1,15 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
let
pname = "php-cs-fixer";
version = "3.11.0";
version = "3.13.1";
in
mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar";
sha256 = "sha256-hnSHR/tDX1w/4SV6fafvUHg4JwTQJxfwKaKvEbUWJjs=";
sha256 = "4bQrCjuaWN4Dbs1tkk4m1WxSb510ue7G59HA+gQ52yk=";
};
dontUnpack = true;
@ -25,6 +26,7 @@ mkDerivation {
'';
meta = with lib; {
changelog = "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/tag/${version}";
description = "A tool to automatically fix PHP coding standards issues";
license = licenses.mit;
homepage = "https://cs.symfony.com/";

View File

@ -1,14 +1,15 @@
{ mkDerivation, fetchurl, lib, php, makeWrapper }:
let
pname = "phpcbf";
version = "3.6.0";
version = "3.7.1";
in
mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcbf.phar";
sha256 = "04wb1imm4934mpy2hxcmqh4cn7md1vwmfii39p6mby809325b5z1";
sha256 = "sha256-yTwOg8vaIcIfhJzPD0tCl50gAEpaYXLtDqJw7Keub6g=";
};
dontUnpack = true;
@ -25,6 +26,7 @@ mkDerivation {
'';
meta = with lib; {
changelog = "https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/${version}";
description = "PHP coding standard beautifier and fixer";
license = licenses.bsd3;
homepage = "https://squizlabs.github.io/PHP_CodeSniffer/";

View File

@ -1,14 +1,15 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
let
pname = "phpcs";
version = "3.6.0";
version = "3.7.1";
in
mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcs.phar";
sha256 = "0sdi78hrwd3r5p1b38qmp89m41kfszh2qn4n5zhq2dmhsjdhjziz";
sha256 = "sha256-ehQyOhSvn1gwLRVEJJLuEHaozXLAGKgWy0SWW/OpsBU=";
};
dontUnpack = true;
@ -25,6 +26,7 @@ mkDerivation {
'';
meta = with lib; {
changelog = "https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/${version}";
description = "PHP coding standard tool";
license = licenses.bsd3;
homepage = "https://squizlabs.github.io/PHP_CodeSniffer/";

View File

@ -1,14 +1,15 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
let
pname = "phpmd";
version = "2.8.2";
version = "2.13.0";
in
mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://github.com/phpmd/phpmd/releases/download/${version}/phpmd.phar";
sha256 = "1i8qgzxniw5d8zjpypalm384y7qfczapfq70xmg129laq6xiqlqb";
sha256 = "LNR7qT3KIhIeq9WPdXVGsnuzzXN4ze/juDMpt1Ke/A0=";
};
dontUnpack = true;
@ -25,6 +26,7 @@ mkDerivation {
'';
meta = with lib; {
changelog = "https://github.com/phpmd/phpmd/releases/tag/${version}";
description = "PHP code quality analyzer";
license = licenses.bsd3;
homepage = "https://phpmd.org/";

View File

@ -1,14 +1,15 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
let
pname = "phpstan";
version = "1.8.6";
version = "1.9.4";
in
mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://github.com/phpstan/phpstan/releases/download/${version}/phpstan.phar";
sha256 = "sha256-8scUd8BT6u9rqBPoaXozkn6H9PIWF/MWNWT9y8RwPkg=";
sha256 = "sha256-A+F/ZoL6dLYx4MWN0eWXtQnmWJPYBqEcSgY4A1oR3mo=";
};
dontUnpack = true;
@ -25,6 +26,7 @@ mkDerivation {
'';
meta = with lib; {
changelog = "https://github.com/phpstan/phpstan/releases/tag/${version}";
description = "PHP Static Analysis Tool";
longDescription = ''
PHPStan focuses on finding errors in your code without actually

View File

@ -1,14 +1,15 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
let
pname = "psalm";
version = "4.29.0";
version = "5.4.0";
in
mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://github.com/vimeo/psalm/releases/download/${version}/psalm.phar";
sha256 = "q+OjEPNAPwSjtnbfBynbbJy3WDITr01ci8O74BMO0Og=";
sha256 = "sha256-d5jf68s+LppUDwERQaqr+ry8L+Zmob8VwetYkQ+vIUg=";
};
dontUnpack = true;
@ -25,6 +26,7 @@ mkDerivation {
'';
meta = with lib; {
changelog = "https://github.com/vimeo/psalm/releases/tag/${version}";
description = "A static analysis tool for finding errors in PHP applications";
license = licenses.mit;
homepage = "https://github.com/vimeo/psalm";

View File

@ -1,14 +1,15 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
let
pname = "psysh";
version = "0.11.8";
version = "0.11.10";
in
mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://github.com/bobthecow/psysh/releases/download/v${version}/psysh-v${version}.tar.gz";
sha256 = "sha256-VK1e3qQGaN6Kc/5dUaGwrHAqk9yiJCwbW29x6i6nHQ4=";
sha256 = "sha256-2U9HMA3OAA9Nl9JVJjepB2vi0O483xGpr8nQUGhOrpI=";
};
dontUnpack = true;
@ -25,6 +26,7 @@ mkDerivation {
'';
meta = with lib; {
changelog = "https://github.com/bobthecow/psysh/releases/tag/v${version}";
description = "PsySH is a runtime developer console, interactive debugger and REPL for PHP.";
license = licenses.mit;
homepage = "https://psysh.org/";

View File

@ -1,16 +1,24 @@
{ buildPecl, lib, php }:
{ buildPecl, lib, php, fetchFromGitHub }:
buildPecl {
let
version = "5.3.7";
in buildPecl {
inherit version;
pname = "redis";
version = "5.3.7";
sha256 = "sha256-uVgWbM2k9AvRfGmY+eIjkCGuZERnzYrVwV3vQgqtZbA=";
src = fetchFromGitHub {
repo = "phpredis";
owner = "phpredis";
rev = version;
sha256 = "sha256-Cc9Mtx28j3kpyV8Yq+JSYQt5XQnELaVjuUbkkbG45kw=";
};
internalDeps = with php.extensions; [
session
];
meta = with lib; {
changelog = "https://github.com/phpredis/phpredis/releases/tag/${version}";
description = "PHP extension for interfacing with Redis";
license = licenses.php301;
homepage = "https://github.com/phpredis/phpredis/";

View File

@ -1,10 +1,17 @@
{ lib, stdenv, buildPecl, php, valgrind, pcre2 }:
{ lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub }:
buildPecl {
let
version = "5.0.1";
in buildPecl {
inherit version;
pname = "swoole";
version = "5.0.1";
sha256 = "1zq5vvwjqpg3d4qv8902w54gvghjgcb3c7szi7fpqi6f51mhhwvf";
src = fetchFromGitHub {
owner = "swoole";
repo = "swoole-src";
rev = "v${version}";
sha256 = "sha256-d0xccbfOmebWR14oTUviWz/mB5IA7iXn0uUWxTQRd9w=";
};
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
@ -12,6 +19,7 @@ buildPecl {
checkTarget = "tests";
meta = with lib; {
changelog = "https://github.com/swoole/swoole-src/releases/tag/v${version}";
description = "Coroutine-based concurrency library for PHP";
license = licenses.asl20;
homepage = "https://www.swoole.co.uk/";

View File

@ -1,10 +1,18 @@
{ buildPecl, lib }:
{ buildPecl, lib, fetchFromGitHub }:
let
version = "3.2.0";
in buildPecl {
inherit version;
buildPecl {
pname = "xdebug";
version = "3.2.0";
sha256 = "1drj00z8ididm2iw7a7pnrsvakrr1g0i49aqkyz5zpysxh7b4sbp";
src = fetchFromGitHub {
owner = "xdebug";
repo = "xdebug";
rev = version;
sha256 = "sha256-GQB69aETp8STyT4GHQQSPJBVEynWifbmGQXUeISvLRI=";
};
doCheck = true;
checkTarget = "test";
@ -12,6 +20,7 @@ buildPecl {
zendExtension = true;
meta = with lib; {
changelog = "https://github.com/xdebug/xdebug/releases/tag/${version}";
description = "Provides functions for function traces and profiling";
license = licenses.php301;
homepage = "https://xdebug.org/";

View File

@ -30,6 +30,7 @@
, libxslt
, libzip
, net-snmp
, nix-update-script
, oniguruma
, openldap
, openssl_1_1
@ -51,13 +52,16 @@ lib.makeScope pkgs.newScope (self: with self; {
buildPecl = import ../build-support/build-pecl.nix {
php = php.unwrapped;
inherit lib;
inherit (pkgs) stdenv autoreconfHook fetchurl re2c;
inherit (pkgs) stdenv autoreconfHook fetchurl re2c nix-update-script;
};
# Wrap mkDerivation to prepend pname with "php-" to make names consistent
# with how buildPecl does it and make the file easier to overview.
mkDerivation = { pname, ... }@args: pkgs.stdenv.mkDerivation (args // {
pname = "php-${pname}";
passthru = {
updateScript = nix-update-script {};
};
meta = args.meta // {
mainProgram = args.meta.mainProgram or pname;
};