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