2015-02-05 12:16:25 +01:00
|
|
|
{stdenv, fetchurl, fetchpatch, zlib, expat}:
|
2007-10-01 17:12:41 +02:00
|
|
|
|
2009-04-01 11:04:01 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-02-04 11:39:37 +01:00
|
|
|
name = "exiv2-0.24";
|
2015-02-05 12:16:25 +01:00
|
|
|
|
2009-04-01 11:04:01 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.exiv2.org/${name}.tar.gz";
|
2014-02-04 11:39:37 +01:00
|
|
|
sha256 = "13pgvz14kyapxl89pxjaq3274k56d5lzfckpg1g9z7gvqzk4797l";
|
2009-04-01 11:04:01 +02:00
|
|
|
};
|
2015-02-05 12:16:25 +01:00
|
|
|
|
|
|
|
patches = [(fetchpatch {
|
|
|
|
name = "CVE-2014-9449.diff";
|
|
|
|
url = "http://dev.exiv2.org/projects/exiv2/repository/revisions/3264/diff?format=diff&rev_to=3263";
|
|
|
|
sha256 = "02w0fksl966d4v6bkg6rq3wmvv8xjpvfp47qr0nv1xq0bphxqzag";
|
|
|
|
})];
|
|
|
|
|
2010-12-13 19:10:26 +01:00
|
|
|
propagatedBuildInputs = [zlib expat];
|
2015-02-05 12:16:25 +01:00
|
|
|
|
2010-12-13 19:10:26 +01:00
|
|
|
# configure script finds zlib&expat but it thinks that they're in /usr
|
|
|
|
configureFlags = "--with-zlib=${zlib} --with-expat=${expat}";
|
2009-04-01 11:04:01 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.exiv2.org/;
|
|
|
|
description = "A library and command-line utility to manage image metadata";
|
2010-12-13 19:10:26 +01:00
|
|
|
maintainers = [stdenv.lib.maintainers.urkud];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2009-04-01 11:04:01 +02:00
|
|
|
};
|
2007-10-01 17:12:41 +02:00
|
|
|
}
|