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