php.extensions.enchant: use enchant2

enchant2 is supported in PHP8+.

Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
Bobby Rong 2023-01-17 14:43:41 +08:00
parent 2cae716942
commit 6efdd8b483
No known key found for this signature in database

View File

@ -9,7 +9,7 @@
, bzip2
, curl
, cyrus_sasl
, enchant1
, enchant2
, fetchpatch
, freetds
, freetype
@ -311,10 +311,8 @@ lib.makeScope pkgs.newScope (self: with self; {
}
{
name = "enchant";
buildInputs = [ enchant1 ];
configureFlags = [ "--with-enchant=${enchant1}" ];
# enchant1 doesn't build on darwin.
enable = (!stdenv.isDarwin);
buildInputs = [ enchant2 ];
configureFlags = [ "--with-enchant" ];
doCheck = false;
}
{ name = "exif"; doCheck = false; }