lol
1{ lib, stdenv, fetchurl, boost, pkg-config, cppunit, zlib }:
2
3stdenv.mkDerivation rec {
4 pname = "librevenge";
5 version = "0.0.4";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/project/libwpd/librevenge/librevenge-${version}/librevenge-${version}.tar.xz";
9 sha256 = "sha256-kz8HKfBCZ8w1S5oCvD6a/vpVEqO90LRfFZ7hSj4zR7I=";
10 };
11
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [
14 boost
15 cppunit
16 zlib
17 ];
18
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" ];
23
24 # Fix an issue with boost 1.59
25 # This is fixed upstream so please remove this when updating
26 postPatch = ''
27 sed -i 's,-DLIBREVENGE_BUILD,\0 -DBOOST_ERROR_CODE_HEADER_ONLY,g' src/lib/Makefile.in
28 '';
29
30 meta = with lib; {
31 description = "A base library for writing document import filters";
32 license = licenses.mpl20;
33 maintainers = with maintainers; [ raskin ];
34 platforms = platforms.unix;
35 };
36}