2021-12-21 11:53:47 +00:00
|
|
|
{ lib, stdenv, fetchurl, boost, pkg-config, cppunit, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "librevenge";
|
|
|
|
version = "0.0.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/libwpd/librevenge/librevenge-${version}/librevenge-${version}.tar.xz";
|
|
|
|
sha256 = "sha256-kz8HKfBCZ8w1S5oCvD6a/vpVEqO90LRfFZ7hSj4zR7I=";
|
2014-06-27 12:04:47 +00:00
|
|
|
};
|
2021-12-21 11:53:47 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-06-27 12:04:47 +00:00
|
|
|
buildInputs = [
|
2021-12-21 11:53:47 +00:00
|
|
|
boost
|
|
|
|
cppunit
|
|
|
|
zlib
|
2014-06-27 12:04:47 +00:00
|
|
|
];
|
2015-04-08 01:14:24 +00:00
|
|
|
|
2017-11-12 09:35:39 +00:00
|
|
|
# Clang and gcc-7 generate warnings, and
|
2015-04-08 01:14:24 +00:00
|
|
|
# -Werror causes these warnings to be interpreted as errors
|
|
|
|
# Simplest solution: disable -Werror
|
2017-11-12 09:35:39 +00:00
|
|
|
configureFlags = [ "--disable-werror" ];
|
2015-04-08 01:14:24 +00:00
|
|
|
|
2015-09-02 20:52:34 +00:00
|
|
|
# Fix an issue with boost 1.59
|
|
|
|
# This is fixed upstream so please remove this when updating
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's,-DLIBREVENGE_BUILD,\0 -DBOOST_ERROR_CODE_HEADER_ONLY,g' src/lib/Makefile.in
|
|
|
|
'';
|
|
|
|
|
2021-12-21 11:53:47 +00:00
|
|
|
meta = with lib; {
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "A base library for writing document import filters";
|
2021-12-21 11:53:47 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.unix;
|
2014-06-27 12:04:47 +00:00
|
|
|
};
|
|
|
|
}
|