3
0
Fork 0
forked from mirrors/nixpkgs

libjpeg-turbo: Don't use stdenv.cross

This commit is contained in:
hsloan 2017-06-28 16:16:39 -04:00 committed by John Ericson
parent db0af50973
commit 737e344e50

View file

@ -1,4 +1,6 @@
{ stdenv, fetchurl, nasm }:
{ stdenv, fetchurl, nasm
, hostPlatform
}:
stdenv.mkDerivation rec {
name = "libjpeg-turbo-${version}";
@ -10,7 +12,7 @@ stdenv.mkDerivation rec {
}; # github releases still need autotools, surprisingly
patches =
stdenv.lib.optional (stdenv.cross.libc or null == "msvcrt")
stdenv.lib.optional (hostPlatform.libc or null == "msvcrt")
./mingw-boolean.patch;
outputs = [ "bin" "dev" "out" "doc" ];