nixpkgs/pkgs/development/libraries/mongoc/default.nix

25 lines
715 B
Nix
Raw Normal View History

2017-08-12 19:25:39 +02:00
{ stdenv, fetchzip, perl, pkgconfig, libbson
, openssl, which, zlib, snappy
}:
stdenv.mkDerivation rec {
name = "mongoc-${version}";
2017-09-28 13:20:56 +02:00
version = "1.8.0";
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";
};
nativeBuildInputs = [ pkgconfig which perl ];
buildInputs = [ openssl zlib snappy ];
propagatedBuildInputs = [ libbson ];
meta = with stdenv.lib; {
description = "The official C client library for MongoDB";
homepage = https://github.com/mongodb/mongo-c-driver;
license = licenses.asl20;
platforms = platforms.all;
};
}