2019-09-18 22:17:03 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, librsvg
|
|
|
|
, libiconv
|
|
|
|
}:
|
2009-03-03 14:27:40 +01:00
|
|
|
|
2011-07-11 16:29:27 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-09-18 22:17:03 +02:00
|
|
|
pname = "djvulibre";
|
|
|
|
version = "3.5.27";
|
2007-07-01 22:11:32 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-09-18 22:17:03 +02:00
|
|
|
url = "mirror://sourceforge/djvu/${pname}-${version}.tar.gz";
|
2015-02-12 20:32:24 +01:00
|
|
|
sha256 = "0psh3zl9dj4n4r3lx25390nx34xz0bg0ql48zdskhq354ljni5p6";
|
2007-07-01 22:11:32 +02:00
|
|
|
};
|
|
|
|
|
2016-08-29 02:30:01 +02:00
|
|
|
outputs = [ "bin" "dev" "out" ];
|
2015-10-28 19:36:40 +01:00
|
|
|
|
2019-09-18 22:17:03 +02:00
|
|
|
buildInputs = [
|
|
|
|
libjpeg
|
|
|
|
libtiff
|
|
|
|
librsvg
|
|
|
|
libiconv
|
|
|
|
];
|
2007-07-01 22:11:32 +02:00
|
|
|
|
2019-12-03 02:05:49 +01:00
|
|
|
patches = [
|
|
|
|
./CVE-2019-18804.patch
|
|
|
|
# This one is needed to make the following
|
|
|
|
# two CVE patches apply cleanly
|
|
|
|
./fix_hongfuzz_crash.patch
|
|
|
|
./CVE-2019-15142.patch
|
|
|
|
./CVE-2019-15143.patch
|
|
|
|
./CVE-2019-15144.patch
|
|
|
|
./CVE-2019-15145.patch
|
|
|
|
];
|
|
|
|
|
2015-03-27 22:09:22 +01:00
|
|
|
meta = with stdenv.lib; {
|
2019-09-18 22:17:03 +02:00
|
|
|
description = "The big set of CLI tools to make/modify/optimize/show/export DJVU files";
|
|
|
|
homepage = "http://djvu.sourceforge.net";
|
2015-03-27 22:09:22 +01:00
|
|
|
license = licenses.gpl2;
|
2019-09-18 22:17:03 +02:00
|
|
|
maintainers = with maintainers; [ Anton-Latukha ];
|
2015-03-27 22:09:22 +01:00
|
|
|
platforms = platforms.all;
|
2007-07-01 22:11:32 +02:00
|
|
|
};
|
|
|
|
}
|