Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.0 KiB
Nix
61 lines
1.0 KiB
Nix
{
|
|
buildPecl,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
lib,
|
|
libkrb5,
|
|
openssl,
|
|
pam,
|
|
pcre2,
|
|
pkg-config,
|
|
uwimap,
|
|
}:
|
|
|
|
let
|
|
version = "1.0.2";
|
|
in
|
|
buildPecl {
|
|
inherit version;
|
|
pname = "imap";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "php";
|
|
repo = "pecl-mail-imap";
|
|
rev = version;
|
|
hash = "sha256-QVeimxm3rfWMvMpSgadhMKd24yPdDGVuhXIOs8668do=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix compilation with PHP 8.4.
|
|
(fetchpatch {
|
|
url = "https://github.com/php/pecl-mail-imap/commit/4fc9970a29c205ec328f36edc8c119c158129324.patch";
|
|
hash = "sha256-MxEaEe4YVeP7W5gDSNJb0thwAhxDj/yRr3qvjlJjRL4=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
uwimap
|
|
openssl
|
|
pam
|
|
pcre2
|
|
libkrb5
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-imap=${uwimap}"
|
|
"--with-imap-ssl"
|
|
"--with-kerberos"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "PHP extension for checking the spelling of a word";
|
|
homepage = "https://pecl.php.net/package/imap";
|
|
license = licenses.php301;
|
|
teams = [ teams.php ];
|
|
};
|
|
}
|