mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +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
|
{ stdenv, cmake
|
||||||
, version, src, patches ? [ ]
|
, version, src, patches ? [ ]
|
||||||
|
, hostPlatform
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -11,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
crossAttrs = {
|
crossAttrs = {
|
||||||
} // stdenv.lib.optionalAttrs (stdenv.cross.libc == "msvcrt") {
|
} // stdenv.lib.optionalAttrs (hostPlatform.libc == "msvcrt") {
|
||||||
cmakeFlags = "-DMSGPACK_BUILD_EXAMPLES=OFF -DCMAKE_SYSTEM_NAME=Windows";
|
cmakeFlags = "-DMSGPACK_BUILD_EXAMPLES=OFF -DCMAKE_SYSTEM_NAME=Windows";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue