diff options
author | Elis Hirwing <elis@hirwing.se> | 2018-09-22 20:22:57 +0200 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-09-22 20:22:57 +0200 |
commit | 0b82fbc3af2149f4db6da4150b35393569f6366f (patch) | |
tree | abdf57fd2313a247d78ac78f5f2ca5dacc5014a4 /pkgs/development/interpreters | |
parent | f2ba1a4284c30af9071c7f5efbaa709beb8c18a0 (diff) | |
download | nixlib-0b82fbc3af2149f4db6da4150b35393569f6366f.tar nixlib-0b82fbc3af2149f4db6da4150b35393569f6366f.tar.gz nixlib-0b82fbc3af2149f4db6da4150b35393569f6366f.tar.bz2 nixlib-0b82fbc3af2149f4db6da4150b35393569f6366f.tar.lz nixlib-0b82fbc3af2149f4db6da4150b35393569f6366f.tar.xz nixlib-0b82fbc3af2149f4db6da4150b35393569f6366f.tar.zst nixlib-0b82fbc3af2149f4db6da4150b35393569f6366f.zip |
php: Refactor so we can upgrade PHP per platform (#47162)
This way we don't need to disable flags etc by platform and can still backport new versions to stable for linux even if there's a bug or something in the darwin build.
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/php/default.nix | 45 |
1 files changed, 32 insertions, 13 deletions
diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index adffe647c365..5af569a5e7c8 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -37,10 +37,7 @@ let , opensslSupport ? config.php.openssl or true , mbstringSupport ? config.php.mbstring or true , gdSupport ? config.php.gd or true - # Because of an upstream bug: https://bugs.php.net/bug.php?id=76826 - # We need to disable the intl support on darwin. Whenever the upstream bug is - # fixed we should revert this to just just "config.php.intl or true". - , intlSupport ? (config.php.intl or true) && (!stdenv.isDarwin) + , intlSupport ? config.php.intl or true , exifSupport ? config.php.exif or true , xslSupport ? config.php.xsl or false , mcryptSupport ? config.php.mcrypt or true @@ -225,13 +222,35 @@ let }; in { - php71 = generic { - version = "7.1.22"; - sha256 = "0qz74qdlk19cw478f42ckyw5r074y0fg73r2bzlhm0dar0cizsf8"; - }; - - php72 = generic { - version = "7.2.10"; - sha256 = "17fsvdi6ihjghjsz9kk2li2rwrknm2ccb6ys0xmn789116d15dh1"; - }; + # Because of an upstream bug: https://bugs.php.net/bug.php?id=76826 + # We can't update the darwin versions because they simply don't compile at + # all due to a bug in the intl extensions. + # + # The bug so far is present in 7.1.21, 7.1.22, 7.2.9, 7.2.10. + + php71 = generic ( + if stdenv.isDarwin then + { + version = "7.1.20"; + sha256 = "0i8xd6p4zdg8fl6f0j430raanlshsshr3s3jlm72b0gvi1n4f6rs"; + } + else + { + version = "7.1.22"; + sha256 = "0qz74qdlk19cw478f42ckyw5r074y0fg73r2bzlhm0dar0cizsf8"; + } + ); + + php72 = generic ( + if stdenv.isDarwin then + { + version = "7.2.8"; + sha256 = "1rky321gcvjm0npbfd4bznh36an0y14viqcvn4yzy3x643sni00z"; + } + else + { + version = "7.2.10"; + sha256 = "17fsvdi6ihjghjsz9kk2li2rwrknm2ccb6ys0xmn789116d15dh1"; + } + ); } |