9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
48 lines
867 B
Nix
48 lines
867 B
Nix
{ stdenv
|
|
, buildPecl
|
|
, fetchFromGitHub
|
|
, lib
|
|
, libiconv
|
|
, pcre2
|
|
, pkg-config
|
|
, cyrus_sasl
|
|
, icu64
|
|
, openssl
|
|
, snappy
|
|
, zlib
|
|
, darwin
|
|
}:
|
|
|
|
buildPecl rec {
|
|
pname = "mongodb";
|
|
version = "1.16.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mongodb";
|
|
repo = "mongo-php-driver";
|
|
rev = version;
|
|
hash = "sha256-nVkue3qB6OwXKcyaYU1WmXG7pamKQtk8cbztVVkNejo=";
|
|
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;
|
|
};
|
|
}
|