libpng: 1.6.35 -> 1.6.36, license v2

This commit is contained in:
Will Dietz 2018-12-03 06:18:31 -06:00
parent 9960a413f4
commit 6f986c8bdc
2 changed files with 11 additions and 6 deletions

View File

@ -451,6 +451,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
fullName = "libpng License";
};
libpng2 = {
fullName = "libpng License v2"; # 1.6.36+
inherit (libpng) url;
};
libtiff = spdx {
spdxId = "libtiff";
fullName = "libtiff License";

View File

@ -3,20 +3,20 @@
assert zlib != null;
let
patchVersion = "1.6.35";
patchVersion = "1.6.36";
patch_src = fetchurl {
url = "mirror://sourceforge/libpng-apng/libpng-${patchVersion}-apng.patch.gz";
sha256 = "011fq5wgyz07pfrqs9albixbiksx3agx5nkcf3535gbvhlwv5khq";
sha256 = "03ywdwaq1k3pfslvbs2b33z3pdmazz6yp8g56mzafacvfgd367wc";
};
whenPatched = stdenv.lib.optionalString apngSupport;
in stdenv.mkDerivation rec {
name = "libpng" + whenPatched "-apng" + "-${version}";
version = "1.6.35";
version = "1.6.36";
src = fetchurl {
url = "mirror://sourceforge/libpng/libpng-${version}.tar.xz";
sha256 = "1mxwjf5cdzk7g0y51gl9w3f0j5ypcls05i89kgnifjaqr742x493";
sha256 = "06d35a3xz2a0kph82r56hqm1fn8fbwrqs07xzmr93dx63x695szc";
};
postPatch = whenPatched "gunzip < ${patch_src} | patch -Np1";
@ -25,14 +25,14 @@ in stdenv.mkDerivation rec {
propagatedBuildInputs = [ zlib ];
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
doCheck = true;
passthru = { inherit zlib; };
meta = with stdenv.lib; {
description = "The official reference implementation for the PNG file format" + whenPatched " with animation patch";
homepage = http://www.libpng.org/pub/png/libpng.html;
license = licenses.libpng;
license = licenses.libpng2;
platforms = platforms.all;
maintainers = [ maintainers.vcunat maintainers.fuuzetsu ];
};