mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
libmsgpack generic: Don't use stdenv.cross
This commit is contained in:
parent
737e344e50
commit
a9c90df12e
@ -1,5 +1,6 @@
|
||||
{ stdenv, cmake
|
||||
, version, src, patches ? [ ]
|
||||
, hostPlatform
|
||||
, ...
|
||||
}:
|
||||
|
||||
@ -11,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
crossAttrs = {
|
||||
} // stdenv.lib.optionalAttrs (stdenv.cross.libc == "msvcrt") {
|
||||
} // stdenv.lib.optionalAttrs (hostPlatform.libc == "msvcrt") {
|
||||
cmakeFlags = "-DMSGPACK_BUILD_EXAMPLES=OFF -DCMAKE_SYSTEM_NAME=Windows";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user