2021-12-24 04:21:11 +00:00
|
|
|
{ lib, stdenv, fetchurl, boost, pkg-config, cppunit, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "librevenge";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "0.0.5";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/libwpd/librevenge/librevenge-${version}/librevenge-${version}.tar.xz";
|
2023-02-09 11:40:11 +00:00
|
|
|
sha256 = "sha256-EG0MRLtkCLE0i54EZWZvqDuBYXdmWiLNAX6IbBqu6zQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-12-24 04:21:11 +00:00
|
|
|
boost
|
|
|
|
cppunit
|
|
|
|
zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Clang and gcc-7 generate warnings, and
|
|
|
|
# -Werror causes these warnings to be interpreted as errors
|
|
|
|
# Simplest solution: disable -Werror
|
|
|
|
configureFlags = [ "--disable-werror" ];
|
|
|
|
|
|
|
|
# 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-24 04:21:11 +00:00
|
|
|
meta = with lib; {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "A base library for writing document import filters";
|
2021-12-24 04:21:11 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|