at master 1.1 kB view raw
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.2"; 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-QVeimxm3rfWMvMpSgadhMKd24yPdDGVuhXIOs8668do="; 26 }; 27 28 patches = [ 29 # Fix compilation with PHP 8.4. 30 (fetchpatch { 31 url = "https://github.com/php/pecl-mail-imap/commit/4fc9970a29c205ec328f36edc8c119c158129324.patch"; 32 hash = "sha256-MxEaEe4YVeP7W5gDSNJb0thwAhxDj/yRr3qvjlJjRL4="; 33 }) 34 ]; 35 36 nativeBuildInputs = [ pkg-config ]; 37 38 buildInputs = [ 39 uwimap 40 openssl 41 pam 42 pcre2 43 libkrb5 44 ]; 45 46 configureFlags = [ 47 "--with-imap=${uwimap}" 48 "--with-imap-ssl" 49 "--with-kerberos" 50 ]; 51 52 doCheck = true; 53 54 meta = with lib; { 55 description = "PHP extension for checking the spelling of a word"; 56 homepage = "https://pecl.php.net/package/imap"; 57 license = licenses.php301; 58 teams = [ teams.php ]; 59 }; 60}