lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 17.09-beta 44 lines 1.4 kB view raw
1{ stdenv, fetchurl, zlib, apngSupport ? true 2, buildPlatform, hostPlatform 3}: 4 5assert zlib != null; 6 7let 8 version = "1.6.31"; 9 patchVersion = "1.6.31"; 10 sha256 = "0hcbxv9qf4f9q7brrk0ndag526glr8lii43grssv45j9w0nn0ai3"; 11 patch_src = fetchurl { 12 url = "mirror://sourceforge/libpng-apng/libpng-${patchVersion}-apng.patch.gz"; 13 sha256 = "0f10ih658j514vpvsli0pk378vcmjn78g52cssyg92r4k1r19rla"; 14 }; 15 whenPatched = stdenv.lib.optionalString apngSupport; 16 17in stdenv.mkDerivation rec { 18 name = "libpng" + whenPatched "-apng" + "-${version}"; 19 20 src = fetchurl { 21 url = "mirror://sourceforge/libpng/libpng-${version}.tar.xz"; 22 inherit sha256; 23 }; 24 postPatch = whenPatched "gunzip < ${patch_src} | patch -Np1"; 25 26 outputs = [ "out" "dev" "man" ]; 27 outputBin = "dev"; 28 29 propagatedBuildInputs = [ zlib ]; 30 31 # it's hard to cross-run tests and some check programs didn't compile anyway 32 makeFlags = stdenv.lib.optional (!doCheck) "check_PROGRAMS="; 33 doCheck = hostPlatform == buildPlatform; 34 35 passthru = { inherit zlib; }; 36 37 meta = with stdenv.lib; { 38 description = "The official reference implementation for the PNG file format" + whenPatched " with animation patch"; 39 homepage = http://www.libpng.org/pub/png/libpng.html; 40 license = licenses.libpng; 41 platforms = platforms.all; 42 maintainers = [ maintainers.vcunat maintainers.fuuzetsu ]; 43 }; 44}