2015-03-12 01:10:55 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, glib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libmongo-client-0.1.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "algernon";
|
|
|
|
repo = "libmongo-client";
|
|
|
|
rev = name;
|
|
|
|
sha256 = "1cjx06i3gd9zkyvwm2ysjrf0hkhr7bjg3c27s7n0y31j10igfjp0";
|
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ ];
|
2015-03-12 01:10:55 +00:00
|
|
|
propagatedBuildInputs = [ glib ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Fix when uses glib in public headers
|
|
|
|
sed -i 's/Requires.private/Requires/g' src/libmongo-client.pc.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://algernon.github.io/libmongo-client/;
|
|
|
|
description = "An alternative C driver for MongoDB";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|