2017-08-12 17:25:39 +00:00
|
|
|
{ stdenv, fetchzip, perl, pkgconfig, libbson
|
2017-09-28 13:11:24 +00:00
|
|
|
, openssl, which, zlib, snappy
|
2015-08-22 22:11:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mongoc";
|
2017-09-28 11:20:56 +00:00
|
|
|
version = "1.8.0";
|
2015-08-22 22:11:55 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mongodb/mongo-c-driver/releases/download/${version}/mongo-c-driver-${version}.tar.gz";
|
2017-09-28 11:20:56 +00:00
|
|
|
sha256 = "1vnnk3pwbcmwva1010bl111kdcdx3yb2w7j7a78hhvrm1k9r1wp8";
|
2015-08-22 22:11:55 +00:00
|
|
|
};
|
|
|
|
|
2017-09-28 13:11:24 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig which perl ];
|
2017-12-20 09:54:02 +00:00
|
|
|
buildInputs = [ openssl zlib ];
|
|
|
|
propagatedBuildInputs = [ libbson snappy ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2015-08-22 22:11:55 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The official C client library for MongoDB";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mongodb/mongo-c-driver";
|
2015-08-22 22:11:55 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|