libjpeg-turbo: Don't use stdenv.cross
This commit is contained in:
parent
db0af50973
commit
737e344e50
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchurl, nasm }:
|
{ stdenv, fetchurl, nasm
|
||||||
|
, hostPlatform
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libjpeg-turbo-${version}";
|
name = "libjpeg-turbo-${version}";
|
||||||
@ -10,7 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
}; # github releases still need autotools, surprisingly
|
}; # github releases still need autotools, surprisingly
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
stdenv.lib.optional (stdenv.cross.libc or null == "msvcrt")
|
stdenv.lib.optional (hostPlatform.libc or null == "msvcrt")
|
||||||
./mingw-boolean.patch;
|
./mingw-boolean.patch;
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "doc" ];
|
outputs = [ "bin" "dev" "out" "doc" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user