1{ stdenv, cmake
2, version, src, patches ? [ ]
3, ...
4}:
5
6stdenv.mkDerivation rec {
7 name = "msgpack-${version}";
8
9 inherit src patches;
10
11 nativeBuildInputs = [ cmake ];
12
13 enableParallelBuilding = true;
14
15 cmakeFlags = []
16 ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
17 "-DMSGPACK_BUILD_EXAMPLES=OFF"
18 ;
19
20 meta = with stdenv.lib; {
21 description = "MessagePack implementation for C and C++";
22 homepage = https://msgpack.org;
23 license = licenses.asl20;
24 maintainers = with maintainers; [ redbaron ];
25 platforms = platforms.all;
26 };
27}