2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchzip, perl, pkg-config, 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
|
|
|
};
|
|
|
|
|
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 23:11:55 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-08-22 23:11:55 +01:00
|
|
|
description = "The official C client library for MongoDB";
|
2022-05-05 01:52:27 +01:00
|
|
|
homepage = "http://mongoc.org";
|
2015-08-22 23:11:55 +01:00
|
|
|
license = licenses.asl20;
|
2022-05-05 01:52:27 +01:00
|
|
|
mainProgram = "mongoc-stat";
|
2015-08-22 23:11:55 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|