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