diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index adffe647c36..5af569a5e7c 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"; - }; + # 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. - php72 = generic { - version = "7.2.10"; - sha256 = "17fsvdi6ihjghjsz9kk2li2rwrknm2ccb6ys0xmn789116d15dh1"; - }; + 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"; + } + ); }