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