php.extensions.pspell: Fetch from PECL

PHP 8.4 will remove it from tree:

b035cb6c8e
This commit is contained in:
Jan Tojnar 2024-08-10 23:23:31 +02:00
parent 1bf9d8abd0
commit b92fa30124
2 changed files with 34 additions and 2 deletions

View File

@ -0,0 +1,32 @@
{
aspell,
buildPecl,
fetchFromGitHub,
lib,
}:
let
version = "1.0.1";
in
buildPecl {
inherit version;
pname = "pspell";
src = fetchFromGitHub {
owner = "php";
repo = "pecl-text-pspell";
rev = version;
hash = "sha256-IVBuEVsUKah8W+oVpIPT9Iln6MFox0e5/5Y14/Kgcg4=";
};
configureFlags = [ "--with-pspell=${aspell}" ];
doCheck = true;
meta = with lib; {
description = "PHP extension for checking the spelling of a word";
homepage = "https://pecl.php.net/package/pspell";
license = licenses.php301;
maintainers = teams.php.members;
};
}

View File

@ -6,7 +6,6 @@
, phpPackage
, autoconf
, pkg-config
, aspell
, bzip2
, curl
, cyrus_sasl
@ -324,6 +323,8 @@ in {
protobuf = callPackage ../development/php-packages/protobuf { };
pspell = callPackage ../development/php-packages/pspell { };
rdkafka = callPackage ../development/php-packages/rdkafka { };
redis = callPackage ../development/php-packages/redis { };
@ -584,7 +585,6 @@ in {
doCheck = false;
}
{ name = "posix"; doCheck = false; }
{ name = "pspell"; configureFlags = [ "--with-pspell=${aspell}" ]; }
{
name = "readline";
buildInputs = [