nixpkgs/pkgs/development/libraries/librevenge/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, boost, pkgconfig, cppunit, zlib}:
let
s = # Generated upstream information
rec {
baseName="librevenge";
2016-02-14 20:15:26 +00:00
version="0.0.4";
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";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
boost cppunit zlib
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit nativeBuildInputs buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
2015-04-08 01:14:24 +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
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
'';
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 01:14:24 +00:00
platforms = stdenv.lib.platforms.unix;
};
}