2017-11-09 02:49:23 -08:00
|
|
|
{ stdenv, fetchurl, fetchpatch, gettext }:
|
2005-03-11 02:46:20 -08:00
|
|
|
|
2007-11-16 09:28:17 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2012-07-13 09:13:59 -07:00
|
|
|
name = "libexif-0.6.21";
|
2005-03-11 02:46:20 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-11-16 09:28:17 -08:00
|
|
|
url = "mirror://sourceforge/libexif/${name}.tar.bz2";
|
2012-07-13 09:13:59 -07:00
|
|
|
sha256 = "06nlsibr3ylfwp28w8f5466l6drgrnydgxrm4jmxzrmk5svaxk8n";
|
2005-03-11 02:46:20 -08:00
|
|
|
};
|
|
|
|
|
2017-11-09 02:49:23 -08:00
|
|
|
patches = [
|
2019-11-06 16:46:24 -08:00
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2017-7544.patch";
|
|
|
|
url = "https://github.com/libexif/libexif/commit/c39acd1692023b26290778a02a9232c873f9d71a.patch";
|
|
|
|
sha256 = "0xgx6ly2i4q05shb61mfx6njwf1yp347jkznm0ka4m85i41xm6sd";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-20030-1.patch";
|
|
|
|
url = "https://github.com/libexif/libexif/commit/5d28011c40ec86cf52cffad541093d37c263898a.patch";
|
|
|
|
sha256 = "1wv8s962wmbn2m2xypgirf12g6msrbplpsmd5bh86irfwhkcppj3";
|
|
|
|
})
|
2019-11-16 09:22:59 -08:00
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-20030-2.patch";
|
|
|
|
url = "https://github.com/libexif/libexif/commit/6aa11df549114ebda520dde4cdaea2f9357b2c89.patch";
|
|
|
|
sha256 = "01aqvz63glwq6wg0wr7ykqqghb4abgq77ghvhizbzadg1k4h7drx";
|
|
|
|
excludes = [ "NEWS" ];
|
|
|
|
})
|
2017-11-09 02:49:23 -08:00
|
|
|
];
|
|
|
|
|
2010-07-28 04:55:54 -07:00
|
|
|
buildInputs = [ gettext ];
|
2010-08-29 06:47:59 -07:00
|
|
|
|
|
|
|
meta = {
|
2019-11-06 16:46:24 -08:00
|
|
|
homepage = https://libexif.github.io/;
|
2010-08-29 06:49:58 -07:00
|
|
|
description = "A library to read and manipulate EXIF data in digital photographs";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2019-11-06 16:46:24 -08:00
|
|
|
maintainers = [ stdenv.lib.maintainers.erictapen ];
|
2010-08-29 06:47:59 -07:00
|
|
|
};
|
|
|
|
|
2005-03-11 02:46:20 -08:00
|
|
|
}
|