1{ stdenv, lib, fetchFromGitHub, pkgconfig, cmake }:
2
3stdenv.mkDerivation rec {
4 name = "rapidjson-${version}";
5 version = "1.1.0";
6
7 src = fetchFromGitHub {
8 owner = "miloyip";
9 repo = "rapidjson";
10 rev = "v${version}";
11 sha256 = "1jixgb8w97l9gdh3inihz7avz7i770gy2j2irvvlyrq3wi41f5ab";
12 };
13
14 nativeBuildInputs = [ pkgconfig cmake ];
15
16 meta = with lib; {
17 description = "Fast JSON parser/generator for C++ with both SAX/DOM style API";
18 homepage = "http://rapidjson.org/";
19 license = licenses.mit;
20 platforms = platforms.linux;
21 maintainers = with maintainers; [ cstrahan ];
22 };
23}