2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
buildPecl,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
libiconv,
|
|
|
|
pcre2,
|
|
|
|
pkg-config,
|
|
|
|
cyrus_sasl,
|
|
|
|
icu64,
|
|
|
|
openssl,
|
|
|
|
snappy,
|
|
|
|
zlib,
|
|
|
|
darwin,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildPecl rec {
|
2020-10-16 20:44:37 +00:00
|
|
|
pname = "mongodb";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.19.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mongodb";
|
|
|
|
repo = "mongo-php-driver";
|
|
|
|
rev = version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-hog6bOKAhLwZMjrUD5yOJ607B1MLYaZJjq6CXIYPlH4=";
|
2023-07-15 17:15:38 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2024-05-15 15:35:15 +00:00
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
cyrus_sasl
|
|
|
|
icu64
|
|
|
|
openssl
|
|
|
|
snappy
|
|
|
|
zlib
|
|
|
|
pcre2
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk_11_0.frameworks.Security
|
|
|
|
darwin.apple_sdk_11_0.Libsystem
|
|
|
|
libiconv
|
|
|
|
];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = {
|
|
|
|
description = "The Official MongoDB PHP driver";
|
|
|
|
homepage = "https://github.com/mongodb/mongo-php-driver";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = lib.teams.php.members;
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
2020-10-16 20:44:37 +00:00
|
|
|
}
|