1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

libpng default: Don't use stdenv.cross

This commit is contained in:
hsloan 2017-06-28 16:21:38 -04:00 committed by John Ericson
parent bdbdb08eef
commit a850ddbefc

View file

@ -1,4 +1,6 @@
{ stdenv, fetchurl, zlib, apngSupport ? true }:
{ stdenv, fetchurl, zlib, apngSupport ? true
, buildPlatform, hostPlatform
}:
assert zlib != null;
@ -29,7 +31,7 @@ in stdenv.mkDerivation rec {
# it's hard to cross-run tests and some check programs didn't compile anyway
makeFlags = stdenv.lib.optional (!doCheck) "check_PROGRAMS=";
doCheck = ! stdenv ? cross;
doCheck = hostPlatform == buildPlatform;
passthru = { inherit zlib; };