mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
libmsgpack: Remove crossAttrs
Just set cmakeFlags directly. Also improve conditions.
This commit is contained in:
parent
d1cf0a8a3a
commit
507a64cd8d
@ -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++";
|
||||
|
Loading…
Reference in New Issue
Block a user