1{ stdenv
2, buildPecl
3, lib
4, pcre2
5, pkg-config
6, cyrus_sasl
7, icu64
8, openssl
9, snappy
10, zlib
11, darwin
12}:
13
14buildPecl {
15 pname = "mongodb";
16
17 version = "1.15.0";
18 sha256 = "sha256-7rYmjTS9C0o9zGDd5OSE9c9PokOco9nwJMAADpnuckA=";
19
20 nativeBuildInputs = [ pkg-config ];
21 buildInputs = [
22 cyrus_sasl
23 icu64
24 openssl
25 snappy
26 zlib
27 pcre2
28 ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
29
30 meta = with lib; {
31 description = "MongoDB driver for PHP";
32 license = licenses.asl20;
33 homepage = "https://docs.mongodb.com/drivers/php/";
34 maintainers = teams.php.members;
35 };
36}