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

24 lines
662 B
Nix
Raw Normal View History

2017-08-12 17:25:39 +00:00
{ stdenv, fetchzip, perl, pkgconfig, libbson
, openssl, which
}:
stdenv.mkDerivation rec {
name = "mongoc-${version}";
2017-08-12 17:25:39 +00:00
version = "1.7.0";
src = fetchzip {
url = "https://github.com/mongodb/mongo-c-driver/releases/download/${version}/mongo-c-driver-${version}.tar.gz";
2017-08-12 17:25:39 +00:00
sha256 = "1s0j7wmgdkgawzd75psh5ml35lkx68h6pimqrnfp2z1ggzcwajgn";
};
propagatedBuildInputs = [ libbson ];
2017-08-12 17:25:39 +00:00
buildInputs = [ openssl perl pkgconfig which ];
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;
};
}