2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, gettext }:
|
2005-03-11 10:46:20 +00:00
|
|
|
|
2007-11-16 17:28:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-19 00:12:05 +01:00
|
|
|
pname = "libexif";
|
|
|
|
version = "0.6.22";
|
2005-03-11 10:46:20 +00:00
|
|
|
|
2020-05-19 00:12:05 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${builtins.replaceStrings ["."] ["_"] version}-release";
|
|
|
|
sha256 = "0mzndakdi816zcs13z7yzp7hj031p2dcyfq2p391r63d9z21jmy1";
|
2005-03-11 10:46:20 +00:00
|
|
|
};
|
|
|
|
|
2020-11-08 15:37:40 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2020-0198.patch";
|
|
|
|
url = "https://github.com/libexif/libexif/commit/ce03ad7ef4e8aeefce79192bf5b6f69fae396f0c.patch";
|
|
|
|
sha256 = "1040278g5dbq3vvlyk8cmzb7flpi9bfsp99268hw69i6ilwbdf2k";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2020-0452.patch";
|
|
|
|
url = "https://github.com/libexif/libexif/commit/9266d14b5ca4e29b970fa03272318e5f99386e06.patch";
|
|
|
|
excludes = [ "NEWS" ];
|
|
|
|
sha256 = "0k4z1gbbkli6wwyy9qm2qvn0h00qda6wqym61nmmbys7yc2zryj6";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-05-19 00:12:05 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook gettext ];
|
2017-11-09 10:49:23 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://libexif.github.io/";
|
2010-08-29 14:49:58 +01:00
|
|
|
description = "A library to read and manipulate EXIF data in digital photographs";
|
2020-05-19 00:12:05 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ erictapen ];
|
2010-08-29 14:47:59 +01:00
|
|
|
};
|
|
|
|
|
2005-03-11 10:46:20 +00:00
|
|
|
}
|