1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 03:25:02 +00:00
nixpkgs/pkgs/development/libraries/msgpack/generic.nix
2020-04-10 17:54:53 +01:00

29 lines
622 B
Nix

{ stdenv, cmake
, version, src, patches ? [ ]
, ...
}:
stdenv.mkDerivation {
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;
};
}