1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-23 07:26:54 +00:00
nixpkgs/pkgs/development/libraries/libmongo-client/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

30 lines
806 B
Nix

{ 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";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ ];
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 ];
};
}