Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, glib }: 2 3stdenv.mkDerivation rec { 4 pname = "libmongo-client"; 5 version = "0.1.8"; 6 7 src = fetchFromGitHub { 8 owner = "algernon"; 9 repo = "libmongo-client"; 10 rev = "${pname}-${version}"; 11 sha256 = "1cjx06i3gd9zkyvwm2ysjrf0hkhr7bjg3c27s7n0y31j10igfjp0"; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook pkg-config ]; 15 buildInputs = [ ]; 16 propagatedBuildInputs = [ glib ]; 17 18 postPatch = '' 19 # Fix when uses glib in public headers 20 sed -i 's/Requires.private/Requires/g' src/libmongo-client.pc.in 21 ''; 22 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 }; 29}