about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/msgpack/generic.nix
blob: 04f84d49f84402dbf23da299b7817f4d21f3a65e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, cmake
, version, src, patches ? [ ]
, ...
}:

stdenv.mkDerivation rec {
  pname = "msgpack";
  inherit version;

  inherit src patches;

  nativeBuildInputs = [ cmake ];

  enableParallelBuilding = true;

  cmakeFlags = []
    ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
                           "-DMSGPACK_BUILD_EXAMPLES=OFF"
    ;

  meta = with stdenv.lib; {
    description = "MessagePack implementation for C and C++";
    homepage    = https://msgpack.org;
    license     = licenses.asl20;
    maintainers = with maintainers; [ redbaron ];
    platforms   = platforms.all;
  };
}