2014-06-27 14:04:47 +02:00
|
|
|
{stdenv, fetchurl, boost, pkgconfig, cppunit, zlib}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="librevenge";
|
2014-12-31 21:18:46 +01:00
|
|
|
version="0.0.2";
|
2014-06-27 14:04:47 +02:00
|
|
|
name="${baseName}-${version}";
|
2014-12-31 21:18:46 +01:00
|
|
|
hash="03ygxyb0vfjv8raif5q62sl33b54wkr5rzgadb8slijm6k281wpn";
|
|
|
|
url="mirror://sourceforge/project/libwpd/librevenge/librevenge-0.0.2/librevenge-0.0.2.tar.xz";
|
|
|
|
sha256="03ygxyb0vfjv8raif5q62sl33b54wkr5rzgadb8slijm6k281wpn";
|
2014-06-27 14:04:47 +02:00
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
boost pkgconfig cppunit zlib
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2015-04-08 03:14:24 +02: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 23:37:53 +02:00
|
|
|
configureFlags = if stdenv.cc.isClang
|
2015-04-08 03:14:24 +02:00
|
|
|
then [ "--disable-werror" ] else null;
|
|
|
|
|
2014-06-27 14:04:47 +02: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 03:14:24 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-06-27 14:04:47 +02:00
|
|
|
};
|
|
|
|
}
|