git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22509 from joachifm/jbig2dec

jbig2dec: update & security patch

commit34157f7a046bf0aafd9daea0fc6c46d33e53239e authorGraham Christensen <graham@grahamc.com> dateTue 7 Feb 2017, 08:28 (10 years ago) parent83865b283f83ca
1 file changed+13−5
pkgs/development/libraries/jbig2dec/default.nix+13−5
pkgs/development/libraries/jbig2dec/default.nix+13−5
@@ -1,15 +1,23 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, fetchpatch }:
22
33stdenv.mkDerivation rec {
4− name = "jbig2dec-0.11";
4+ name = "jbig2dec-0.13";
55
66 src = fetchurl {
7− url = "mirror://sourceforge/jbig2dec/${name}.tar.xz";
8− sha256 = "1xddc30garsg5j8p348cz5l8vn8j7723c0sykv0kc1w5ihaghsq1";
7+ url = "http://downloads.ghostscript.com/public/jbig2dec/${name}.tar.gz";
8+ sha256 = "04akiwab8iy5iy34razcvh9mcja9wy737civ3sbjxk4j143s1b2s";
99 };
1010
11+ patches =
12+ [ (fetchpatch {
13+ url = "http://git.ghostscript.com/?p=jbig2dec.git;a=patch;h=e698d5c11d27212aa1098bc5b1673a3378563092";
14+ sha256 = "1fc8xm1z98xj2zkcl0zj7dpjjsbz3vn61b59jnkhcyzy3iiczv7f";
15+ name = "CVE-2016-9601.patch";
16+ })
17+ ];
18+
1119 meta = {
12− homepage = http://jbig2dec.sourceforge.net/;
20+ homepage = https://www.ghostscript.com/jbig2dec.html;
1321 description = "Decoder implementation of the JBIG2 image compression format";
1422 license = stdenv.lib.licenses.gpl2Plus;
1523 platforms = stdenv.lib.platforms.unix;