1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, glib }:
3 stdenv.mkDerivation rec {
4 pname = "libmongo-client";
7 src = fetchFromGitHub {
9 repo = "libmongo-client";
10 rev = "${pname}-${version}";
11 sha256 = "1cjx06i3gd9zkyvwm2ysjrf0hkhr7bjg3c27s7n0y31j10igfjp0";
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
16 propagatedBuildInputs = [ glib ];
19 # Fix when uses glib in public headers
20 sed -i 's/Requires.private/Requires/g' src/libmongo-client.pc.in
24 homepage = "http://algernon.github.io/libmongo-client/";
25 description = "An alternative C driver for MongoDB";
26 license = licenses.asl20;
27 platforms = platforms.all;