php: Init at 7.2.0

This commit is contained in:
Elis Hirwing 2017-12-04 12:56:33 +01:00
parent 5c66d653a2
commit 4ef2695284
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
2 changed files with 14 additions and 2 deletions

View File

@ -4,7 +4,7 @@
, mysql, libxml2, readline, zlib, curl, postgresql, gettext
, openssl, pcre, pkgconfig, sqlite, config, libjpeg, libpng, freetype
, libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash, freetds
, uwimap, pam, gmp, apacheHttpd, libiconv, systemd }:
, uwimap, pam, gmp, apacheHttpd, libiconv, systemd, libsodium }:
let
@ -226,6 +226,11 @@ let
calendar = {
configureFlags = ["--enable-calendar"];
};
sodium = {
configureFlags = ["--with-sodium=${libsodium.dev}"];
buildInputs = [libsodium];
};
};
cfg = {
@ -265,6 +270,7 @@ let
mssqlSupport = (!php7) && (config.php.mssql or (!stdenv.isDarwin));
ztsSupport = config.php.zts or false;
calendarSupport = config.php.calendar or true;
sodiumSupport = (lib.versionAtLeast version "7.2") && config.php.sodium or true;
};
hardeningDisable = [ "bindnow" ];
@ -346,4 +352,9 @@ in {
version = "7.1.11";
sha256 = "0ww5493w8w3jlks0xqlfm3v6mm53vpnv5vjy63inkj8zf3gdfikn";
};
php72 = generic {
version = "7.2.0";
sha256 = "0jn642bm4ah6a5cjavpz8mzw3ddxa270fcwxkj3rg6vb4bjgmzib";
};
}

View File

@ -6773,7 +6773,8 @@ with pkgs;
inherit (callPackages ../development/interpreters/php { })
php56
php70
php71;
php71
php72;
php-embed = php71-embed;