libmsgpack: Remove crossAttrs

Just set cmakeFlags directly. Also improve conditions.
This commit is contained in:
John Ericson 2018-05-10 12:42:43 -04:00
parent d1cf0a8a3a
commit 507a64cd8d

View File

@ -13,13 +13,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
crossAttrs = { cmakeFlags = []
} // stdenv.lib.optionalAttrs (hostPlatform.libc == "msvcrt") { ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
cmakeFlags = [ "-DMSGPACK_BUILD_EXAMPLES=OFF"
"-DMSGPACK_BUILD_EXAMPLES=OFF" ++ stdenv.lib.optional (hostPlatform.libc == "msvcrt")
"-DCMAKE_SYSTEM_NAME=Windows" "-DCMAKE_SYSTEM_NAME=Windows"
]; ;
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "MessagePack implementation for C and C++"; description = "MessagePack implementation for C and C++";