From 737e344e503df91aef707649e82b1294e709f960 Mon Sep 17 00:00:00 2001 From: hsloan Date: Wed, 28 Jun 2017 16:16:39 -0400 Subject: [PATCH] libjpeg-turbo: Don't use stdenv.cross --- pkgs/development/libraries/libjpeg-turbo/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libjpeg-turbo/default.nix b/pkgs/development/libraries/libjpeg-turbo/default.nix index a59a1702e173..cd8484170bdb 100644 --- a/pkgs/development/libraries/libjpeg-turbo/default.nix +++ b/pkgs/development/libraries/libjpeg-turbo/default.nix @@ -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" ];