about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libwmf/default.nix
blob: bf685862adf17d334369a511fea11baee991433d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchurl, fetchpatch, zlib, imagemagick, libpng, pkgconfig, glib
, freetype, libjpeg, libxml2 }:

stdenv.mkDerivation {
  name = "libwmf-0.2.8.4";

  src = fetchurl {
    url = mirror://sourceforge/wvware/libwmf-0.2.8.4.tar.gz;
    sha256 = "1y3wba4q8pl7kr51212jwrsz1x6nslsx1gsjml1x0i8549lmqd2v";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ zlib imagemagick libpng glib freetype libjpeg libxml2 ];

  patches = [
    ./CVE-2006-3376.patch ./CVE-2009-1364.patch
    ./CVE-2015-0848+4588+4695+4696.patch
    (fetchpatch {
      name = "libwmf-0.2.8.4-CVE-2016-9011-debian.patch";
      url = "https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=842090;filename=libwmf-0.2.8.4-CVE-2016-9011-debian.patch;msg=10";
      sha256 = "15vnqrj1dlvn0g8ccrxj2r2cyb1rv0qf0kfangxfgsi5h8is0c2b";
    })
  ];

  meta = with stdenv.lib; {
    description = "WMF library from wvWare";
    homepage = http://wvware.sourceforge.net/libwmf.html;
    license = licenses.gpl2;
    platforms = platforms.unix;
  };
}