1{ stdenv, fetchurl, boost, libwpd, libwpg, pkgconfig, zlib, gperf
2, librevenge, libxml2, icu, perl
3}:
4
5stdenv.mkDerivation rec {
6 name = "libvisio-0.1.3";
7
8 src = fetchurl {
9 url = "http://dev-www.libreoffice.org/src/${name}.tar.bz2";
10 sha256 = "1blgdwxprqkasm2175imcvy647sqv6xyf3k09p0b1i7hlq889wvy";
11 };
12
13 nativeBuildInputs = [ pkgconfig ];
14 buildInputs = [ boost libwpd libwpg zlib gperf librevenge libxml2 icu perl ];
15
16 # Boost 1.59 compatability fix
17 # Attempt removing when updating
18 postPatch = ''
19 sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in
20 '';
21
22 configureFlags = [
23 "--disable-werror"
24 "--disable-tests"
25 ];
26
27 meta = {
28 description = "A library providing ability to interpret and import visio diagrams into various applications";
29 homepage = http://www.freedesktop.org/wiki/Software/libvisio;
30 platforms = stdenv.lib.platforms.unix;
31 };
32}