1 { lib, stdenv, fetchurl, boost, pkg-config, cppunit, zlib }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/project/libwpd/librevenge/librevenge-${version}/librevenge-${version}.tar.xz";
9 sha256 = "sha256-EG0MRLtkCLE0i54EZWZvqDuBYXdmWiLNAX6IbBqu6zQ=";
12 nativeBuildInputs = [ pkg-config ];
19 # Clang and gcc-7 generate warnings, and
20 # -Werror causes these warnings to be interpreted as errors
21 # Simplest solution: disable -Werror
22 configureFlags = [ "--disable-werror" ];
24 # Fix an issue with boost 1.59
25 # This is fixed upstream so please remove this when updating
27 sed -i 's,-DLIBREVENGE_BUILD,\0 -DBOOST_ERROR_CODE_HEADER_ONLY,g' src/lib/Makefile.in
31 description = "A base library for writing document import filters";
32 license = licenses.mpl20;
33 maintainers = with maintainers; [ raskin ];
34 platforms = platforms.unix;