git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32305 from etu/php72

php: add 7.2.0

commitf59a0f7f1a6d968e0e05bd7d3188f32f17eb226f authoradisbladis <adisbladis@gmail.com> dateMon 1 Jan 2018, 19:01 (9 years ago) parentd9e26a0f1779ce
3 files changed+32−4
pkgs/development/interpreters/php/default.nix+12−1 pkgs/top-level/all-packages.nix+7−1 pkgs/top-level/php-packages.nix+13−2
pkgs/development/interpreters/php/default.nix+12−1
@@ -4,7 +4,7 @@
44, mysql, libxml2, readline, zlib, curl, postgresql, gettext
55, openssl, pcre, pkgconfig, sqlite, config, libjpeg, libpng, freetype
66, libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash, freetds
7−, uwimap, pam, gmp, apacheHttpd, libiconv, systemd }:
7+, uwimap, pam, gmp, apacheHttpd, libiconv, systemd, libsodium }:
88
99let
1010
@@ -226,6 +226,11 @@ let
226226 calendar = {
227227 configureFlags = ["--enable-calendar"];
228228 };
229+
230+ sodium = {
231+ configureFlags = ["--with-sodium=${libsodium.dev}"];
232+ buildInputs = [libsodium];
233+ };
229234 };
230235
231236 cfg = {
@@ -265,6 +270,7 @@ let
265270 mssqlSupport = (!php7) && (config.php.mssql or (!stdenv.isDarwin));
266271 ztsSupport = config.php.zts or false;
267272 calendarSupport = config.php.calendar or true;
273+ sodiumSupport = (lib.versionAtLeast version "7.2") && config.php.sodium or true;
268274 };
269275
270276 hardeningDisable = [ "bindnow" ];
@@ -346,4 +352,9 @@ in {
346352 version = "7.1.11";
347353 sha256 = "0ww5493w8w3jlks0xqlfm3v6mm53vpnv5vjy63inkj8zf3gdfikn";
348354 };
355+
356+ php72 = generic {
357+ version = "7.2.0";
358+ sha256 = "0jn642bm4ah6a5cjavpz8mzw3ddxa270fcwxkj3rg6vb4bjgmzib";
359+ };
349360}
pkgs/top-level/all-packages.nix+7−1
@@ -6770,10 +6770,16 @@ with pkgs;
67706770 php = php71;
67716771 });
67726772
6773+ php72Packages = recurseIntoAttrs (callPackage ./php-packages.nix {
6774+ php = php72;
6775+ });
6776+
6777+
67736778 inherit (callPackages ../development/interpreters/php { })
67746779 php56
67756780 php70
6776− php71;
6781+ php71
6782+ php72;
67776783
67786784 php-embed = php71-embed;
67796785
pkgs/top-level/php-packages.nix+13−2
@@ -8,6 +8,8 @@ let
88 };
99 isPhpOlder55 = pkgs.lib.versionOlder php.version "5.5";
1010 isPhp7 = pkgs.lib.versionAtLeast php.version "7.0";
11+ isPhp72 = pkgs.lib.versionAtLeast php.version "7.2";
12+ isPhpOlder7 = pkgs.lib.versionOlder php.version "7.0";
1113
1214 apcu = if isPhp7 then apcu51 else apcu40;
1315
@@ -179,7 +181,7 @@ let
179181 buildInputs = [ pkgs.spidermonkey_1_8_5 ];
180182 };
181183
182− xdebug = if isPhp7 then xdebug25 else xdebug23;
184+ xdebug = if isPhp72 then xdebug26 else if isPhp7 then xdebug25 else xdebug23;
183185
184186 xdebug23 = assert !isPhp7; buildPecl {
185187 name = "xdebug-2.3.1";
@@ -190,7 +192,7 @@ let
190192 checkTarget = "test";
191193 };
192194
193− xdebug25 = buildPecl {
195+ xdebug25 = assert !isPhp72; buildPecl {
194196 name = "xdebug-2.5.0";
195197
196198 sha256 = "03c9y25a3gc3kpav0cdgmhjixcaly6974hx7wgihi0wlchgavmlb";
@@ -199,6 +201,15 @@ let
199201 checkTarget = "test";
200202 };
201203
204+ xdebug26 = assert !isPhpOlder7; buildPecl {
205+ name = "xdebug-2.6.0beta1";
206+
207+ sha256 = "0zaj821jbpaqqcbr9a64sa27my9n980pmyy9kxrvvjqq3qg6dpj9";
208+
209+ doCheck = true;
210+ checkTarget = "test";
211+ };
212+
202213 yaml = if isPhp7 then yaml20 else yaml13;
203214
204215 yaml13 = assert !isPhp7; buildPecl {