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