Merge pull request #246425 from adriandole/master

mongocxx: init at 3.8.0

authored by Pol Dellaiera and committed by GitHub a6565aaf f1f450ab

+61
+6
maintainers/maintainer-list.nix
··· 418 418 githubId = 1250775; 419 419 name = "Adolfo E. García Castro"; 420 420 }; 421 + adriandole = { 422 + email = "adrian@dole.tech"; 423 + github = "adriandole"; 424 + githubId = 25236206; 425 + name = "Adrian Dole"; 426 + }; 421 427 AdsonCicilioti = { 422 428 name = "Adson Cicilioti"; 423 429 email = "adson.cicilioti@live.com";
+53
pkgs/development/libraries/mongocxx/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , mongoc 5 + , cmake 6 + , validatePkgConfig 7 + , testers 8 + }: 9 + 10 + stdenv.mkDerivation (finalAttrs: { 11 + pname = "mongocxx"; 12 + version = "3.8.0"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "mongodb"; 16 + repo = "mongo-cxx-driver"; 17 + rev = "refs/tags/r${finalAttrs.version}"; 18 + hash = "sha256-7pMVBWMIGV6k04/0rKULwNcl0NMO4hqMnOzWv+0/DrA="; 19 + }; 20 + 21 + postPatch = '' 22 + substituteInPlace src/bsoncxx/config/CMakeLists.txt \ 23 + src/mongocxx/config/CMakeLists.txt \ 24 + --replace "\\\''${prefix}/" "" 25 + ''; 26 + 27 + nativeBuildInputs = [ 28 + cmake 29 + validatePkgConfig 30 + ]; 31 + 32 + buildInputs = [ 33 + mongoc 34 + ]; 35 + 36 + cmakeFlags = [ 37 + "-DCMAKE_CXX_STANDARD=20" 38 + "-DBUILD_VERSION=${finalAttrs.version}" 39 + "-DENABLE_UNINSTALL=OFF" 40 + ]; 41 + 42 + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 43 + 44 + meta = with lib; { 45 + description = "The official C++ client library for MongoDB"; 46 + homepage = "http://mongocxx.org"; 47 + license = licenses.asl20; 48 + maintainers = with maintainers; [ adriandole ]; 49 + pkgConfigModules = [ "libmongocxx" "libbsoncxx" ]; 50 + platforms = platforms.all; 51 + badPlatforms = [ "x86_64-darwin" ]; # needs sdk >= 10.14 52 + }; 53 + })
+2
pkgs/top-level/all-packages.nix
··· 40080 40080 40081 40081 mongoc = darwin.apple_sdk_11_0.callPackage ../development/libraries/mongoc { }; 40082 40082 40083 + mongocxx = callPackage ../development/libraries/mongocxx/default.nix { }; 40084 + 40083 40085 mongoose = callPackage ../development/libraries/science/math/mongoose { }; 40084 40086 40085 40087 morph = callPackage ../tools/package-management/morph { };