depot/pkgs/development/php-packages/mongodb/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

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;
};
}