2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl, boost, pkg-config, cppunit, zlib}:
|
2014-06-27 13:04:47 +01:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="librevenge";
|
2016-02-14 20:15:26 +00:00
|
|
|
version="0.0.4";
|
2014-06-27 13:04:47 +01:00
|
|
|
name="${baseName}-${version}";
|
2016-02-14 20:15:26 +00:00
|
|
|
hash="1cj76cz4mqcy2mgv9l5xlc95bypyk8zbq0ls9cswqrs2y0lhfgwk";
|
|
|
|
url="mirror://sourceforge/project/libwpd/librevenge/librevenge-0.0.4/librevenge-0.0.4.tar.xz";
|
|
|
|
sha256="1cj76cz4mqcy2mgv9l5xlc95bypyk8zbq0ls9cswqrs2y0lhfgwk";
|
2014-06-27 13:04:47 +01:00
|
|
|
};
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-06-27 13:04:47 +01:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
boost cppunit zlib
|
2014-06-27 13:04:47 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2017-09-14 20:24:37 +01:00
|
|
|
inherit nativeBuildInputs buildInputs;
|
2014-06-27 13:04:47 +01:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2015-04-08 02:14:24 +01:00
|
|
|
|
2017-11-12 09:35:39 +00:00
|
|
|
# Clang and gcc-7 generate warnings, and
|
2015-04-08 02:14:24 +01: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 02:14:24 +01:00
|
|
|
|
2015-09-02 21:52:34 +01: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
|
|
|
|
'';
|
|
|
|
|
2014-06-27 13:04:47 +01:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "A base library for writing document import filters";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.mpl20 ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.unix;
|
2014-06-27 13:04:47 +01:00
|
|
|
};
|
|
|
|
}
|