10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
18 sha256 = "1jixgb8w97l9gdh3inihz7avz7i770gy2j2irvvlyrq3wi41f5ab";
23 url = "https://src.fedoraproject.org/rpms/rapidjson/raw/48402da9f19d060ffcd40bf2b2e6987212c58b0c/f/rapidjson-1.1.0-c++20.patch";
24 sha256 = "1qm62iad1xfsixv1li7qy475xc7gc04hmi2q21qdk6l69gk7mf82";
27 url = "https://git.alpinelinux.org/aports/plain/community/rapidjson/do-not-include-gtest-src-dir.patch";
28 hash = "sha256-BjSZEwfCXA/9V+kxQ/2JPWbc26jQn35CfN8+8NW24s4=";
33 find -name CMakeLists.txt | xargs \
34 sed -i -e "s/-Werror//g" -e "s/-march=native//g"
37 nativeBuildInputs = [ pkg-config cmake ];
40 "-DGTEST_SOURCE_DIR=${gtest.dev}/include"
41 ] ++ lib.optionals (!doCheck) [
42 "-DRAPIDJSON_BUILD_TESTS=OFF"
52 ctest -E '.*valgrind.*'
57 doCheck = !stdenv.hostPlatform.isStatic;
60 description = "Fast JSON parser/generator for C++ with both SAX/DOM style API";
61 homepage = "http://rapidjson.org/";
62 license = licenses.mit;
63 platforms = platforms.unix;
64 maintainers = with maintainers; [ cstrahan dotlambda ];