2021-06-28 23:13:55 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPecl
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchFromGitHub
|
2021-06-28 23:13:55 +00:00
|
|
|
, lib
|
2023-07-15 17:15:38 +00:00
|
|
|
, libiconv
|
2021-06-28 23:13:55 +00:00
|
|
|
, pcre2
|
|
|
|
, pkg-config
|
|
|
|
, cyrus_sasl
|
|
|
|
, icu64
|
|
|
|
, openssl
|
|
|
|
, snappy
|
|
|
|
, zlib
|
|
|
|
, darwin
|
|
|
|
}:
|
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-01-02 11:29:13 +00:00
|
|
|
version = "1.17.2";
|
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-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-7JzFls5cMzlA2aEM7M4+Dg4yIJNzz/vNOXNEITejePk=";
|
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 ];
|
|
|
|
buildInputs = [
|
2020-10-16 20:44:37 +00:00
|
|
|
cyrus_sasl
|
|
|
|
icu64
|
|
|
|
openssl
|
|
|
|
snappy
|
|
|
|
zlib
|
2021-06-06 07:54:09 +00:00
|
|
|
pcre2
|
2023-07-15 17:15:38 +00:00
|
|
|
] ++ 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
|
|
|
}
|