about summary refs log tree commit diff
path: root/pkgs/development/php-packages/pspell/default.nix
blob: fb8609bca3a3c9a93ce0d49042cdaec7c905939f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
  };
}