2014-06-27 13:04:47 +01:00
|
|
|
{stdenv, fetchurl, boost, pkgconfig, cppunit, zlib}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="librevenge";
|
2016-01-01 09:25:53 +00:00
|
|
|
version="0.0.3";
|
2014-06-27 13:04:47 +01:00
|
|
|
name="${baseName}-${version}";
|
2016-01-01 09:25:53 +00:00
|
|
|
hash="1r0n5q7rw32h5fhnxfl7f4pwvprn9agpf117nhn71jrjqx57irvw";
|
|
|
|
url="mirror://sourceforge/project/libwpd/librevenge/librevenge-0.0.3/librevenge-0.0.3.tar.xz";
|
|
|
|
sha256="1r0n5q7rw32h5fhnxfl7f4pwvprn9agpf117nhn71jrjqx57irvw";
|
2014-06-27 13:04:47 +01:00
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
boost pkgconfig cppunit zlib
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2015-04-08 02:14:24 +01:00
|
|
|
|
|
|
|
# Clang generates warnings in Boost's header files
|
|
|
|
# -Werror causes these warnings to be interpreted as errors
|
|
|
|
# Simplest solution: disable -Werror
|
2015-05-11 22:37:53 +01:00
|
|
|
configureFlags = if stdenv.cc.isClang
|
2015-04-08 02:14:24 +01:00
|
|
|
then [ "--disable-werror" ] else null;
|
|
|
|
|
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;
|
|
|
|
description = ''A base library for writing document import filters'';
|
|
|
|
license = stdenv.lib.licenses.mpl20 ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2015-04-08 02:14:24 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-06-27 13:04:47 +01:00
|
|
|
};
|
|
|
|
}
|