Merge pull request #242366 from NixOS/php/extension/bump-mongodb-extension

phpExtensions.mongodb: 1.15.0 -> 1.16.1
This commit is contained in:
Pol Dellaiera 2023-07-10 15:57:16 +02:00 committed by GitHub
commit 184b3b322e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 12 deletions

View File

@ -1,6 +1,8 @@
{ stdenv
, buildPecl
, php
, fetchFromGitHub
, lib
, libiconv
, pcre2
, pkg-config
, cyrus_sasl
@ -8,14 +10,21 @@
, openssl
, snappy
, zlib
, darwin
, Security
, Libsystem
}:
buildPecl {
php.buildPecl rec {
pname = "mongodb";
version = "1.16.1";
version = "1.15.0";
sha256 = "sha256-7rYmjTS9C0o9zGDd5OSE9c9PokOco9nwJMAADpnuckA=";
src = fetchFromGitHub {
owner = "mongodb";
repo = "mongo-php-driver";
rev = version;
hash = "sha256-nVkue3qB6OwXKcyaYU1WmXG7pamKQtk8cbztVVkNejo=";
fetchSubmodules = true;
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
@ -25,12 +34,16 @@ buildPecl {
snappy
zlib
pcre2
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
] ++ lib.optionals stdenv.isDarwin [
Security
Libsystem
libiconv
];
meta = with lib; {
description = "MongoDB driver for PHP";
license = licenses.asl20;
homepage = "https://docs.mongodb.com/drivers/php/";
maintainers = teams.php.members;
meta = {
description = "The Official MongoDB PHP driver";
homepage = "https://github.com/mongodb/mongo-php-driver";
license = lib.licenses.asl20;
maintainers = lib.teams.php.members;
};
}

View File

@ -247,7 +247,10 @@ lib.makeScope pkgs.newScope (self: with self; {
memcached = callPackage ../development/php-packages/memcached { };
mongodb = callPackage ../development/php-packages/mongodb { };
mongodb = pkgs.darwin.apple_sdk_11_0.callPackage ../development/php-packages/mongodb {
inherit (pkgs.darwin.apple_sdk_11_0.frameworks) Security;
inherit (pkgs.darwin.apple_sdk_11_0) Libsystem;
};
msgpack = callPackage ../development/php-packages/msgpack { };