7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
51 lines
921 B
Nix
51 lines
921 B
Nix
{
|
|
stdenv,
|
|
buildPecl,
|
|
fetchFromGitHub,
|
|
lib,
|
|
libiconv,
|
|
pcre2,
|
|
pkg-config,
|
|
cyrus_sasl,
|
|
icu64,
|
|
openssl,
|
|
snappy,
|
|
zlib,
|
|
darwin,
|
|
}:
|
|
|
|
buildPecl rec {
|
|
pname = "mongodb";
|
|
version = "1.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mongodb";
|
|
repo = "mongo-php-driver";
|
|
rev = version;
|
|
hash = "sha256-+Q/z5xrhiKTh2hVT6sdpI6sY6E7MTtTJQZBGASy5tAU=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs =
|
|
[
|
|
cyrus_sasl
|
|
icu64
|
|
openssl
|
|
snappy
|
|
zlib
|
|
pcre2
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk_11_0.frameworks.Security
|
|
darwin.apple_sdk_11_0.Libsystem
|
|
libiconv
|
|
];
|
|
|
|
meta = {
|
|
description = "Official MongoDB PHP driver";
|
|
homepage = "https://github.com/mongodb/mongo-php-driver";
|
|
license = lib.licenses.asl20;
|
|
maintainers = lib.teams.php.members;
|
|
};
|
|
}
|