nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchzip, perl, pkgconfig, libbson
2, openssl, which, zlib, snappy
3}:
4
5stdenv.mkDerivation rec {
6 pname = "mongoc";
7 version = "1.8.0";
8
9 src = fetchzip {
10 url = "https://github.com/mongodb/mongo-c-driver/releases/download/${version}/mongo-c-driver-${version}.tar.gz";
11 sha256 = "1vnnk3pwbcmwva1010bl111kdcdx3yb2w7j7a78hhvrm1k9r1wp8";
12 };
13
14 nativeBuildInputs = [ pkgconfig which perl ];
15 buildInputs = [ openssl zlib ];
16 propagatedBuildInputs = [ libbson snappy ];
17
18 enableParallelBuilding = true;
19
20 meta = with stdenv.lib; {
21 description = "The official C client library for MongoDB";
22 homepage = "https://github.com/mongodb/mongo-c-driver";
23 license = licenses.asl20;
24 platforms = platforms.all;
25 };
26}