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:
parent
639f98ff3c
commit
52545aab7d
@ -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++";
|
||||
|
Loading…
Reference in New Issue
Block a user