mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +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;
|
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++";
|
||||||
|
Loading…
Reference in New Issue
Block a user