2017-02-07 02:08:04 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch }:
|
2010-08-09 21:59:38 +01:00
|
|
|
|
2013-03-09 17:44:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-02-07 02:06:30 +00:00
|
|
|
name = "jbig2dec-0.13";
|
2013-03-09 17:44:41 +00:00
|
|
|
|
2010-08-09 21:59:38 +01:00
|
|
|
src = fetchurl {
|
2017-02-07 02:06:30 +00:00
|
|
|
url = "http://downloads.ghostscript.com/public/jbig2dec/${name}.tar.gz";
|
|
|
|
sha256 = "04akiwab8iy5iy34razcvh9mcja9wy737civ3sbjxk4j143s1b2s";
|
2010-08-09 21:59:38 +01:00
|
|
|
};
|
2013-03-09 17:44:41 +00:00
|
|
|
|
2017-02-07 02:08:04 +00:00
|
|
|
patches =
|
|
|
|
[ (fetchpatch {
|
|
|
|
url = "http://git.ghostscript.com/?p=jbig2dec.git;a=patch;h=e698d5c11d27212aa1098bc5b1673a3378563092";
|
|
|
|
sha256 = "1fc8xm1z98xj2zkcl0zj7dpjjsbz3vn61b59jnkhcyzy3iiczv7f";
|
|
|
|
name = "CVE-2016-9601.patch";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2010-08-09 21:59:38 +01:00
|
|
|
meta = {
|
2017-02-07 02:06:30 +00:00
|
|
|
homepage = https://www.ghostscript.com/jbig2dec.html;
|
2010-08-09 21:59:38 +01:00
|
|
|
description = "Decoder implementation of the JBIG2 image compression format";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-08-09 21:59:38 +01:00
|
|
|
};
|
|
|
|
}
|