Skip to content

Commit

Permalink
libmsgpack generic: Don't use stdenv.cross
Browse files Browse the repository at this point in the history
  • Loading branch information
hSloan authored and Ericson2314 committed Jun 28, 2017
1 parent 737e344 commit a9c90df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/libraries/libmsgpack/generic.nix
@@ -1,5 +1,6 @@
{ stdenv, cmake
, version, src, patches ? [ ]
, hostPlatform
, ...
}:

Expand All @@ -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";
};

Expand Down

0 comments on commit a9c90df

Please sign in to comment.