2017-06-28 21:20:55 +01:00
|
|
|
{ stdenv, fetchurl, zlib
|
|
|
|
, buildPlatform, hostPlatform
|
|
|
|
}:
|
2012-01-08 19:50:06 +00:00
|
|
|
|
2017-06-28 21:20:55 +01:00
|
|
|
assert hostPlatform == buildPlatform -> zlib != null;
|
2012-01-08 19:50:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-01-06 20:11:16 +00:00
|
|
|
name = "libpng-1.2.57";
|
2012-01-08 19:50:06 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/libpng/${name}.tar.xz";
|
2017-01-06 20:11:16 +00:00
|
|
|
sha256 = "1n2lrzjkm5jhfg2bs10q398lkwbbx742fi27zgdgx0x23zhj0ihg";
|
2012-01-08 19:50:06 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
2015-10-17 22:16:42 +01:00
|
|
|
|
2012-01-08 19:50:06 +00:00
|
|
|
propagatedBuildInputs = [ zlib ];
|
|
|
|
|
|
|
|
passthru = { inherit zlib; };
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--enable-static" ];
|
2014-04-01 00:37:10 +01:00
|
|
|
|
2015-10-17 22:16:42 +01:00
|
|
|
postInstall = ''mv "$out/bin" "$dev/bin"'';
|
|
|
|
|
2015-11-17 11:56:08 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-01-08 19:50:06 +00:00
|
|
|
description = "The official reference implementation for the PNG file format";
|
|
|
|
homepage = http://www.libpng.org/pub/png/libpng.html;
|
2015-11-17 11:56:08 +00:00
|
|
|
license = licenses.libpng;
|
|
|
|
maintainers = [ maintainers.fuuzetsu ];
|
2014-09-30 10:07:09 +01:00
|
|
|
branch = "1.2";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.unix;
|
2012-01-08 19:50:06 +00:00
|
|
|
};
|
|
|
|
}
|