2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchzip, perl, pkg-config, 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
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config 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
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-08-22 22:11:55 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|