Merge pull request #18275 from taktoa/patch-1

libmsgpack: fixed mingw32 cross-build
This commit is contained in:
Michael Raskin 2017-03-18 17:30:30 +01:00 committed by GitHub
commit 51a7553ea5

View File

@ -8,7 +8,12 @@ stdenv.mkDerivation rec {
inherit src patches;
buildInputs = [ cmake ];
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++";