mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
libpng12/cross: Don't add zlib for Darwin builds.
Cross builds for Darwin already include the CoreFoundation and the libraries from XCode, so zlib already exists on that platform. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
f73851710e
commit
cdaced58ae
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, zlib, xz }:
|
||||
|
||||
assert zlib != null;
|
||||
assert !(stdenv ? cross) -> zlib != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libpng-1.2.50";
|
||||
@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
passthru = { inherit zlib; };
|
||||
|
||||
crossAttrs = stdenv.lib.optionalAttrs (stdenv.cross.libc == "libSystem") {
|
||||
propagatedBuildInputs = [];
|
||||
passthru = {};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "The official reference implementation for the PNG file format";
|
||||
homepage = http://www.libpng.org/pub/png/libpng.html;
|
||||
|
Loading…
Reference in New Issue
Block a user