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:
parent
bdbdb08eef
commit
a850ddbefc
|
@ -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; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue