Merge pull request #324374 from Vcele/update-mongocxx

mongocxx: 3.8.2 → 3.10.2

authored by tomberek and committed by GitHub 32767490 aaecd7e6

+17 -8
+6
maintainers/maintainer-list.nix
··· 21325 githubId = 8889722; 21326 name = "Vitomir Čanadi"; 21327 }; 21328 vcunat = { 21329 name = "Vladimír Čunát"; 21330 # vcunat@gmail.com predominated in commits before 2019/03
··· 21325 githubId = 8889722; 21326 name = "Vitomir Čanadi"; 21327 }; 21328 + vcele = { 21329 + email = "ejycebfx@duck.com"; 21330 + github = "Vcele"; 21331 + githubId = 101071881; 21332 + name = "Victor"; 21333 + }; 21334 vcunat = { 21335 name = "Vladimír Čunát"; 21336 # vcunat@gmail.com predominated in commits before 2019/03
+11 -8
pkgs/development/libraries/mongocxx/default.nix
··· 1 { lib 2 - , stdenv 3 , fetchFromGitHub 4 , mongoc 5 , openssl ··· 7 , cmake 8 , validatePkgConfig 9 , testers 10 }: 11 12 stdenv.mkDerivation (finalAttrs: { 13 pname = "mongocxx"; 14 - version = "3.8.1"; 15 16 src = fetchFromGitHub { 17 owner = "mongodb"; 18 repo = "mongo-cxx-driver"; 19 rev = "refs/tags/r${finalAttrs.version}"; 20 - hash = "sha256-fBZg69jsvXzhllpcPBGXkjYyvUQImnGNkb2Ek5Oi0p4="; 21 }; 22 23 postPatch = '' 24 - substituteInPlace src/bsoncxx/config/CMakeLists.txt \ 25 - src/mongocxx/config/CMakeLists.txt \ 26 - --replace "\\\''${prefix}/" "" 27 ''; 28 29 nativeBuildInputs = [ ··· 35 mongoc 36 openssl 37 cyrus_sasl 38 - ]; 39 40 cmakeFlags = [ 41 "-DCMAKE_CXX_STANDARD=20" ··· 49 description = "Official C++ client library for MongoDB"; 50 homepage = "http://mongocxx.org"; 51 license = licenses.asl20; 52 - maintainers = with maintainers; [ adriandole ]; 53 pkgConfigModules = [ "libmongocxx" "libbsoncxx" ]; 54 platforms = platforms.all; 55 badPlatforms = [ "x86_64-darwin" ]; # needs sdk >= 10.14
··· 1 { lib 2 + , pkgs 3 , fetchFromGitHub 4 , mongoc 5 , openssl ··· 7 , cmake 8 , validatePkgConfig 9 , testers 10 + , darwin 11 }: 12 + 13 + let stdenv = if pkgs.stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else pkgs.stdenv; in 14 15 stdenv.mkDerivation (finalAttrs: { 16 pname = "mongocxx"; 17 + version = "3.10.2"; 18 19 src = fetchFromGitHub { 20 owner = "mongodb"; 21 repo = "mongo-cxx-driver"; 22 rev = "refs/tags/r${finalAttrs.version}"; 23 + hash = "sha256-nGLE0vyCe3PaNJf3duXdBfAhTdRvdeQ+OCwcaSDxi5Y="; 24 }; 25 26 postPatch = '' 27 + substituteInPlace src/bsoncxx/cmake/libbsoncxx.pc.in \ 28 + src/mongocxx/cmake/libmongocxx.pc.in \ 29 + --replace "\''${prefix}/" "" 30 ''; 31 32 nativeBuildInputs = [ ··· 38 mongoc 39 openssl 40 cyrus_sasl 41 + ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; 42 43 cmakeFlags = [ 44 "-DCMAKE_CXX_STANDARD=20" ··· 52 description = "Official C++ client library for MongoDB"; 53 homepage = "http://mongocxx.org"; 54 license = licenses.asl20; 55 + maintainers = with maintainers; [ adriandole vcele ]; 56 pkgConfigModules = [ "libmongocxx" "libbsoncxx" ]; 57 platforms = platforms.all; 58 badPlatforms = [ "x86_64-darwin" ]; # needs sdk >= 10.14