mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
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 {
|
||||
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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user