diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libexif')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libexif/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libexif/default.nix b/nixpkgs/pkgs/development/libraries/libexif/default.nix new file mode 100644 index 000000000000..833ccf5dca5d --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libexif/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl, fetchpatch, gettext }: + +stdenv.mkDerivation rec { + name = "libexif-0.6.21"; + + src = fetchurl { + url = "mirror://sourceforge/libexif/${name}.tar.bz2"; + sha256 = "06nlsibr3ylfwp28w8f5466l6drgrnydgxrm4jmxzrmk5svaxk8n"; + }; + + patches = [ + (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"; + }) + (fetchpatch { + name = "CVE-2018-20030-2.patch"; + url = "https://github.com/libexif/libexif/commit/6aa11df549114ebda520dde4cdaea2f9357b2c89.patch"; + sha256 = "01aqvz63glwq6wg0wr7ykqqghb4abgq77ghvhizbzadg1k4h7drx"; + excludes = [ "NEWS" ]; + }) + ]; + + buildInputs = [ gettext ]; + + meta = { + homepage = https://libexif.github.io/; + description = "A library to read and manipulate EXIF data in digital photographs"; + license = stdenv.lib.licenses.lgpl21; + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.erictapen ]; + }; + +} |