2018-09-28 15:15:53 -07:00
|
|
|
{ stdenv, fetchurl, fetchpatch, expat, zlib, boost, libiconv, darwin }:
|
2014-01-09 08:21:19 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-17 17:22:14 -07:00
|
|
|
name = "exempi-2.4.5";
|
2014-01-09 08:21:19 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 11:43:35 -07:00
|
|
|
url = "https://libopenraw.freedesktop.org/download/${name}.tar.bz2";
|
2018-03-17 17:22:14 -07:00
|
|
|
sha256 = "07i29xmg8bqriviaf4vi1mwha4lrw85kfla29cfym14fp3z8aqa0";
|
2014-01-09 08:21:19 -08:00
|
|
|
};
|
|
|
|
|
2018-09-28 15:15:53 -07:00
|
|
|
patches = [
|
|
|
|
# CVE-2018-12648
|
|
|
|
# https://gitlab.freedesktop.org/libopenraw/exempi/issues/9
|
|
|
|
# remove with exempi > 2.4.5
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-12648.patch";
|
|
|
|
url = https://gitlab.freedesktop.org/libopenraw/exempi/commit/8ed2f034705fd2d032c81383eee8208fd4eee0ac.patch;
|
|
|
|
sha256 = "1nh8irk5p26868875wq5n8g92xp4crfb8fdd8gyna76ldyzqqx9q";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-07-27 13:04:20 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
];
|
2014-10-11 01:51:47 -07:00
|
|
|
|
2017-04-20 22:10:24 -07:00
|
|
|
buildInputs = [ expat zlib boost ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.CoreServices ];
|
2014-01-09 08:21:19 -08:00
|
|
|
|
2018-09-28 15:15:53 -07:00
|
|
|
doCheck = stdenv.isLinux;
|
|
|
|
|
2014-01-09 08:21:19 -08:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 14:50:51 -07:00
|
|
|
homepage = https://libopenraw.freedesktop.org/wiki/Exempi/;
|
2017-04-20 22:10:24 -07:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-01-09 08:21:19 -08:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|