forked from mirrors/nixpkgs
Merge pull request #246425 from adriandole/master
mongocxx: init at 3.8.0
This commit is contained in:
commit
a6565aafe5
|
@ -418,6 +418,12 @@
|
|||
githubId = 1250775;
|
||||
name = "Adolfo E. García Castro";
|
||||
};
|
||||
adriandole = {
|
||||
email = "adrian@dole.tech";
|
||||
github = "adriandole";
|
||||
githubId = 25236206;
|
||||
name = "Adrian Dole";
|
||||
};
|
||||
AdsonCicilioti = {
|
||||
name = "Adson Cicilioti";
|
||||
email = "adson.cicilioti@live.com";
|
||||
|
|
53
pkgs/development/libraries/mongocxx/default.nix
Normal file
53
pkgs/development/libraries/mongocxx/default.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, mongoc
|
||||
, cmake
|
||||
, validatePkgConfig
|
||||
, testers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "mongocxx";
|
||||
version = "3.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mongodb";
|
||||
repo = "mongo-cxx-driver";
|
||||
rev = "refs/tags/r${finalAttrs.version}";
|
||||
hash = "sha256-7pMVBWMIGV6k04/0rKULwNcl0NMO4hqMnOzWv+0/DrA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/bsoncxx/config/CMakeLists.txt \
|
||||
src/mongocxx/config/CMakeLists.txt \
|
||||
--replace "\\\''${prefix}/" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
validatePkgConfig
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
mongoc
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_CXX_STANDARD=20"
|
||||
"-DBUILD_VERSION=${finalAttrs.version}"
|
||||
"-DENABLE_UNINSTALL=OFF"
|
||||
];
|
||||
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
|
||||
meta = with lib; {
|
||||
description = "The official C++ client library for MongoDB";
|
||||
homepage = "http://mongocxx.org";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ adriandole ];
|
||||
pkgConfigModules = [ "libmongocxx" "libbsoncxx" ];
|
||||
platforms = platforms.all;
|
||||
badPlatforms = [ "x86_64-darwin" ]; # needs sdk >= 10.14
|
||||
};
|
||||
})
|
|
@ -40080,6 +40080,8 @@ with pkgs;
|
|||
|
||||
mongoc = darwin.apple_sdk_11_0.callPackage ../development/libraries/mongoc { };
|
||||
|
||||
mongocxx = callPackage ../development/libraries/mongocxx/default.nix { };
|
||||
|
||||
mongoose = callPackage ../development/libraries/science/math/mongoose { };
|
||||
|
||||
morph = callPackage ../tools/package-management/morph { };
|
||||
|
|
Loading…
Reference in a new issue