summary refs log tree commit diff
path: root/pkgs/development/libraries/libmsgpack/generic.nix
blob: 2da703da4cfd97caeefd07742a129f769852b9bb (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
{ stdenv, cmake
, version, src, patches ? [ ]
, ...
}:

stdenv.mkDerivation rec {
  name = "libmsgpack-${version}";

  inherit src patches;

  nativeBuildInputs = [ cmake ];

  crossAttrs = {
  } // stdenv.lib.optionalAttrs (stdenv.cross.libc == "msvcrt") {
    cmakeFlags = "-DMSGPACK_BUILD_EXAMPLES=OFF -DCMAKE_SYSTEM_NAME=Windows";
  };

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