libpng 12: Don't use stdenv ? cross
This commit is contained in:
parent
a9c90df12e
commit
bdbdb08eef
@ -1,6 +1,8 @@
|
||||
{ stdenv, fetchurl, zlib }:
|
||||
{ stdenv, fetchurl, zlib
|
||||
, buildPlatform, hostPlatform
|
||||
}:
|
||||
|
||||
assert !(stdenv ? cross) -> zlib != null;
|
||||
assert hostPlatform == buildPlatform -> zlib != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libpng-1.2.57";
|
||||
@ -16,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
passthru = { inherit zlib; };
|
||||
|
||||
crossAttrs = stdenv.lib.optionalAttrs (stdenv.cross.libc == "libSystem") {
|
||||
crossAttrs = stdenv.lib.optionalAttrs (hostPlatform.libc == "libSystem") {
|
||||
propagatedBuildInputs = [];
|
||||
passthru = {};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user