2015-07-30 13:47:50 +02:00
|
|
|
{ stdenv, fetchurl, zlib }:
|
2012-01-08 20:50:06 +01:00
|
|
|
|
2014-03-12 06:34:42 +01:00
|
|
|
assert !(stdenv ? cross) -> zlib != null;
|
2012-01-08 20:50:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-08-06 08:37:07 +02:00
|
|
|
name = "libpng-1.2.53";
|
2012-01-08 20:50:06 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/libpng/${name}.tar.xz";
|
2015-08-06 08:37:07 +02:00
|
|
|
sha256 = "02jwfqk1ahqfvbs9gdyb5v0123by9ws6m7jnfvainig7i7v4jpml";
|
2012-01-08 20:50:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ zlib ];
|
|
|
|
|
|
|
|
passthru = { inherit zlib; };
|
|
|
|
|
2014-03-12 06:34:42 +01:00
|
|
|
crossAttrs = stdenv.lib.optionalAttrs (stdenv.cross.libc == "libSystem") {
|
|
|
|
propagatedBuildInputs = [];
|
|
|
|
passthru = {};
|
|
|
|
};
|
|
|
|
|
2014-04-01 01:37:10 +02:00
|
|
|
configureFlags = "--enable-static";
|
|
|
|
|
2012-01-08 20:50:06 +01:00
|
|
|
meta = {
|
|
|
|
description = "The official reference implementation for the PNG file format";
|
|
|
|
homepage = http://www.libpng.org/pub/png/libpng.html;
|
2014-09-21 19:53:20 +02:00
|
|
|
license = stdenv.lib.licenses.libpng;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2014-09-30 11:07:09 +02:00
|
|
|
branch = "1.2";
|
2012-01-08 20:50:06 +01:00
|
|
|
};
|
|
|
|
}
|