2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, perl, pkg-config, libbson
|
2020-04-24 23:36:52 +00:00
|
|
|
, openssl, which, zlib, snappy
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mongoc";
|
|
|
|
version = "1.8.0";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mongodb/mongo-c-driver/releases/download/${version}/mongo-c-driver-${version}.tar.gz";
|
|
|
|
sha256 = "1vnnk3pwbcmwva1010bl111kdcdx3yb2w7j7a78hhvrm1k9r1wp8";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config which perl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ openssl zlib ];
|
|
|
|
propagatedBuildInputs = [ libbson snappy ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The official C client library for MongoDB";
|
|
|
|
homepage = "https://github.com/mongodb/mongo-c-driver";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|