mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
libmsgpack generic: Don't use stdenv.cross
This commit is contained in:
parent
737e344e50
commit
a9c90df12e
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue