phpPackages.exts.gmp: Enable on darwin

This commit is contained in:
Elis Hirwing 2020-03-22 19:16:13 +01:00
parent a5f77d6ea2
commit da8ca2be2f
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F

View File

@ -1,5 +1,5 @@
{ stdenv, lib, pkgs, fetchgit, php, autoconf, pkgconfig, re2c
, bzip2, curl, libxml2, openssl, gmp5, icu, oniguruma, libsodium, html-tidy
, bzip2, curl, libxml2, openssl, gmp, icu, oniguruma, libsodium, html-tidy
, libzip, zlib, pcre, pcre2, libxslt, aspell, openldap, cyrus_sasl, uwimap
, pam, libiconv, enchant1, libXpm, gd, libwebp, libjpeg, libpng, freetype
, libffi, freetds, postgresql, sqlite, recode, net-snmp, unixODBC }:
@ -780,10 +780,8 @@ let
];
enable = lib.versionOlder php.version "7.4"; }
{ name = "gmp";
buildInputs = [ gmp5 ];
configureFlags = [ "--with-gmp=${gmp5.dev}" ];
# gmp5 doesn't build on darwin.
enable = (!stdenv.isDarwin); }
buildInputs = [ gmp ];
configureFlags = [ "--with-gmp=${gmp.dev}" ]; }
{ name = "hash"; enable = lib.versionOlder php.version "7.4"; }
{ name = "iconv"; configureFlags = if stdenv.isDarwin then
[ "--with-iconv=${libiconv}" ]