mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
28 lines
627 B
Nix
28 lines
627 B
Nix
{ stdenv, cmake
|
|
, version, src, patches ? [ ]
|
|
, ...
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "msgpack-${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 wkennington ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|