nixpkgs-suyu/pkgs/development/libraries/libvisio/default.nix

33 lines
949 B
Nix
Raw Normal View History

{ stdenv, fetchurl, boost, libwpd, libwpg, pkgconfig, zlib, gperf
, librevenge, libxml2, icu, perl
}:
2012-08-29 22:21:13 +02:00
stdenv.mkDerivation rec {
2015-09-03 22:24:43 +02:00
name = "libvisio-0.1.3";
2012-08-29 22:21:13 +02:00
src = fetchurl {
url = "http://dev-www.libreoffice.org/src/${name}.tar.bz2";
2015-09-03 22:24:43 +02:00
sha256 = "1blgdwxprqkasm2175imcvy647sqv6xyf3k09p0b1i7hlq889wvy";
2012-08-29 22:21:13 +02:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost libwpd libwpg zlib gperf librevenge libxml2 icu perl ];
2012-08-29 22:21:13 +02:00
2015-09-03 22:25:18 +02:00
# Boost 1.59 compatability fix
# Attempt removing when updating
postPatch = ''
sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in
'';
2015-09-03 22:24:43 +02:00
configureFlags = [
"--disable-werror"
"--disable-tests"
];
2012-08-29 22:21:13 +02:00
meta = {
description = "A library providing ability to interpret and import visio diagrams into various applications";
homepage = http://www.freedesktop.org/wiki/Software/libvisio;
2015-04-08 05:52:55 +02:00
platforms = stdenv.lib.platforms.unix;
2012-08-29 22:21:13 +02:00
};
}