2012-01-08 19:50:06 +00:00
|
|
|
{ stdenv, fetchurl, zlib, xz }:
|
|
|
|
|
|
|
|
assert zlib != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-07-25 15:04:47 +00:00
|
|
|
name = "libpng-1.2.50";
|
2012-01-08 19:50:06 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/libpng/${name}.tar.xz";
|
2012-07-25 15:04:47 +00:00
|
|
|
sha256 = "1rz8v3cvy1zzpagxn91lj8swb9vf75rz3yyi18v7zb4jihgzh927";
|
2012-01-08 19:50:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ zlib ];
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ xz ];
|
2012-01-08 19:50:06 +00:00
|
|
|
|
|
|
|
passthru = { inherit zlib; };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The official reference implementation for the PNG file format";
|
|
|
|
homepage = http://www.libpng.org/pub/png/libpng.html;
|
|
|
|
license = "free-non-copyleft"; # http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
|
|
|
|
};
|
|
|
|
}
|