forked from mirrors/nixpkgs
phpPackages.exts.gmp: Enable on darwin
This commit is contained in:
parent
a5f77d6ea2
commit
da8ca2be2f
|
@ -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}" ]
|
||||
|
|
Loading…
Reference in a new issue