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;
crossAttrs = {
} // stdenv.lib.optionalAttrs (hostPlatform.libc == "msvcrt") {
cmakeFlags = [
"-DMSGPACK_BUILD_EXAMPLES=OFF"
"-DCMAKE_SYSTEM_NAME=Windows"
];
};
cmakeFlags = []
++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
"-DMSGPACK_BUILD_EXAMPLES=OFF"
++ stdenv.lib.optional (hostPlatform.libc == "msvcrt")
"-DCMAKE_SYSTEM_NAME=Windows"
;
meta = with stdenv.lib; {
description = "MessagePack implementation for C and C++";