libmsgpack: fixed mingw32 cross-build

`cmake`, as usual, should be in `nativeBuildInputs` and we need to add a few cmake flags for mingw32 build to succeed.
This commit is contained in:
Remy Goldschmidt 2016-09-03 18:24:55 -05:00 committed by GitHub
parent 639f98ff3c
commit 52545aab7d

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++";