python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libmongo-client / default.nix
bloba6a20141cc6242df1c0afc4194dd5f89e33580cb
1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, glib }:
3 stdenv.mkDerivation rec {
4   pname = "libmongo-client";
5   version = "0.1.8";
7   src = fetchFromGitHub {
8     owner = "algernon";
9     repo = "libmongo-client";
10     rev = "${pname}-${version}";
11     sha256 = "1cjx06i3gd9zkyvwm2ysjrf0hkhr7bjg3c27s7n0y31j10igfjp0";
12   };
14   nativeBuildInputs = [ autoreconfHook pkg-config ];
15   buildInputs = [ ];
16   propagatedBuildInputs = [ glib ];
18   postPatch = ''
19     # Fix when uses glib in public headers
20     sed -i 's/Requires.private/Requires/g' src/libmongo-client.pc.in
21   '';
23   meta = with lib; {
24     homepage = "http://algernon.github.io/libmongo-client/";
25     description = "An alternative C driver for MongoDB";
26     license = licenses.asl20;
27     platforms = platforms.all;
28   };