2021-06-26 09:46:46 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPecl
|
|
|
|
, lib
|
|
|
|
, pcre2
|
|
|
|
, pkg-config
|
|
|
|
, cyrus_sasl
|
|
|
|
, icu64
|
|
|
|
, openssl
|
|
|
|
, snappy
|
|
|
|
, zlib
|
|
|
|
, darwin
|
|
|
|
}:
|
2020-10-11 19:14:22 +02:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "mongodb";
|
|
|
|
|
2021-12-23 17:39:12 +01:00
|
|
|
version = "1.12.0";
|
|
|
|
sha256 = "sha256-DZ9nCwISiLtsmwYJefGR8dp3PXKRAGcxZvOLYX4kMX4=";
|
2020-10-11 19:14:22 +02:00
|
|
|
|
2021-02-27 11:29:20 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
2020-10-11 19:14:22 +02:00
|
|
|
cyrus_sasl
|
|
|
|
icu64
|
|
|
|
openssl
|
|
|
|
snappy
|
|
|
|
zlib
|
2021-06-03 15:06:06 +02:00
|
|
|
pcre2
|
2021-02-27 18:43:22 +01:00
|
|
|
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
2020-10-11 19:14:22 +02:00
|
|
|
|
2021-06-08 11:50:05 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "MongoDB driver for PHP";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://docs.mongodb.com/drivers/php/";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
2020-10-11 19:14:22 +02:00
|
|
|
}
|