nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildPecl,
3 fetchFromGitHub,
4 fetchpatch,
5 lib,
6 libkrb5,
7 openssl,
8 pam,
9 pcre2,
10 pkg-config,
11 uwimap,
12}:
13
14let
15 version = "1.0.3";
16in
17buildPecl {
18 inherit version;
19 pname = "imap";
20
21 src = fetchFromGitHub {
22 owner = "php";
23 repo = "pecl-mail-imap";
24 rev = version;
25 hash = "sha256-eDrznw5OtQXJZa7dR9roUiJyINXFZI5qmS+cyoaGHnk=";
26 };
27
28 nativeBuildInputs = [ pkg-config ];
29
30 buildInputs = [
31 uwimap
32 openssl
33 pam
34 pcre2
35 libkrb5
36 ];
37
38 configureFlags = [
39 "--with-imap=${uwimap}"
40 "--with-imap-ssl"
41 "--with-kerberos"
42 ];
43
44 doCheck = true;
45
46 meta = {
47 description = "PHP extension for checking the spelling of a word";
48 homepage = "https://pecl.php.net/package/imap";
49 license = lib.licenses.php301;
50 teams = [ lib.teams.php ];
51 };
52}