diff --git a/pkgs/development/libraries/libmongo-client/default.nix b/pkgs/development/libraries/libmongo-client/default.nix new file mode 100644 index 000000000000..4cbc51ea6786 --- /dev/null +++ b/pkgs/development/libraries/libmongo-client/default.nix @@ -0,0 +1,28 @@ +{ 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"; + }; + + buildInputs = [ autoreconfHook pkgconfig ]; + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a3d57f163757..97adcfbbf61b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1777,6 +1777,8 @@ let libmbim = callPackage ../development/libraries/libmbim { }; + libmongo-client = callPackage ../development/libraries/libmongo-client { }; + libtorrent = callPackage ../tools/networking/p2p/libtorrent { }; libtorrent-git = callPackage ../tools/networking/p2p/libtorrent/git.nix { };