Skip to content

Commit

Permalink
php: drop 5.6 and 7.0
Browse files Browse the repository at this point in the history
Both 5.6 and 7.0 is currently on life support, as in only recieving
security related patches.

This will only continue until:
 - 2018-12-31 for PHP 5.6
 - 2018-12-01 for PHP 7.0

Both these dates are in the middle of the 18.09 lifecycle. So it would
be nice to not have them in the 18.09 stable release. Dropping them
now would also result in less maintanance in updating them.

The death dates can be seen on both these links:
 - https://secure.php.net/supported-versions.php
 - https://en.wikipedia.org/wiki/PHP#Release_history
  • Loading branch information
etu committed Jul 29, 2018
1 parent 846d8f8 commit 7e6b76f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 93 deletions.
19 changes: 4 additions & 15 deletions pkgs/development/interpreters/php/default.nix
Expand Up @@ -9,14 +9,13 @@
with lib;

let
php7 = versionAtLeast version "7.0";
generic =
{ version
, sha256
, imapSupport ? config.php.imap or (!stdenv.isDarwin)
, ldapSupport ? config.php.ldap or true
, mhashSupport ? config.php.mhash or true
, mysqlSupport ? (config.php.mysql or true) && (!php7)
, mysqlSupport ? (config.php.mysql or true)
, mysqlndSupport ? config.php.mysqlnd or true
, mysqliSupport ? config.php.mysqli or true
, pdo_mysqlSupport ? config.php.pdo_mysql or true
Expand All @@ -26,7 +25,7 @@ let
, bcmathSupport ? config.php.bcmath or true
, socketsSupport ? config.php.sockets or true
, curlSupport ? config.php.curl or true
, curlWrappersSupport ? (config.php.curlWrappers or true) && (!php7)
, curlWrappersSupport ? config.php.curlWrappers or true
, gettextSupport ? config.php.gettext or true
, pcntlSupport ? config.php.pcntl or true
, postgresqlSupport ? config.php.postgresql or true
Expand All @@ -47,7 +46,7 @@ let
, ftpSupport ? config.php.ftp or true
, fpmSupport ? config.php.fpm or true
, gmpSupport ? config.php.gmp or true
, mssqlSupport ? (config.php.mssql or (!stdenv.isDarwin)) && (!php7)
, mssqlSupport ? config.php.mssql or (!stdenv.isDarwin)
, ztsSupport ? config.php.zts or false
, calendarSupport ? config.php.calendar or true
, sodiumSupport ? (config.php.sodium or true) && (versionAtLeast version "7.2")
Expand Down Expand Up @@ -207,7 +206,7 @@ let
outputsToInstall = [ "out" "dev" ];
};

patches = if !php7 then [ ./fix-paths.patch ] else [ ./fix-paths-php7.patch ];
patches = [ ./fix-paths-php7.patch ];

postPatch = optional stdenv.isDarwin ''
substituteInPlace configure --replace "-lstdc++" "-lc++"
Expand All @@ -220,16 +219,6 @@ let
};

in {
php56 = generic {
version = "5.6.36";
sha256 = "0ahp9vk33dpsqgld0gg4npff67v0l39hs3wk5dm6h3lablzhwsk2";
};

php70 = generic {
version = "7.0.30";
sha256 = "0l0bhnlgxmfl7mrdykmxfl53simxsksdcnbg5ymqz6r31i03hgr1";
};

php71 = generic {
version = "7.1.19";
sha256 = "1wvhsxzmb78pcr36ginz93iv7rcrxp3p01rb34zxa2h4wdxkxi0k";
Expand Down
68 changes: 0 additions & 68 deletions pkgs/development/interpreters/php/fix-paths.patch

This file was deleted.

10 changes: 0 additions & 10 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -7419,14 +7419,6 @@ with pkgs;
php = php72;
phpPackages = php72Packages;

php56Packages = recurseIntoAttrs (callPackage ./php-packages.nix {
php = php56;
});

php70Packages = recurseIntoAttrs (callPackage ./php-packages.nix {
php = php70;
});

php71Packages = recurseIntoAttrs (callPackage ./php-packages.nix {
php = php71;
});
Expand All @@ -7437,8 +7429,6 @@ with pkgs;


inherit (callPackages ../development/interpreters/php { })
php56
php70
php71
php72;

Expand Down

0 comments on commit 7e6b76f

Please sign in to comment.