depot/third_party/nixpkgs/pkgs/development/php-packages/mongodb/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
912 B
Nix

{
stdenv,
buildPecl,
fetchFromGitHub,
lib,
libiconv,
pcre2,
pkg-config,
cyrus_sasl,
icu64,
openssl,
snappy,
zlib,
darwin,
}:
buildPecl rec {
pname = "mongodb";
version = "1.19.1";
src = fetchFromGitHub {
owner = "mongodb";
repo = "mongo-php-driver";
rev = version;
hash = "sha256-5HGQDgZZu+miPijJD/Y48WlUVfxjkeU9gA7hByzxb/o=";
fetchSubmodules = true;
};
nativeBuildInputs = [ pkg-config ];
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
];
meta = {
description = "The Official MongoDB PHP driver";
homepage = "https://github.com/mongodb/mongo-php-driver";
license = lib.licenses.asl20;
maintainers = lib.teams.php.members;
};
}