mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
bc0d605cf1
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{lib, stdenv, fetchurl, boost, pkg-config, cppunit, zlib}:
|
|
let
|
|
s = # Generated upstream information
|
|
rec {
|
|
baseName="librevenge";
|
|
version="0.0.4";
|
|
name="${baseName}-${version}";
|
|
hash="1cj76cz4mqcy2mgv9l5xlc95bypyk8zbq0ls9cswqrs2y0lhfgwk";
|
|
url="mirror://sourceforge/project/libwpd/librevenge/librevenge-0.0.4/librevenge-0.0.4.tar.xz";
|
|
sha256="1cj76cz4mqcy2mgv9l5xlc95bypyk8zbq0ls9cswqrs2y0lhfgwk";
|
|
};
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
boost cppunit zlib
|
|
];
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit (s) name version;
|
|
inherit nativeBuildInputs buildInputs;
|
|
src = fetchurl {
|
|
inherit (s) url sha256;
|
|
};
|
|
|
|
# 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
|
|
'';
|
|
|
|
meta = {
|
|
inherit (s) version;
|
|
description = "A base library for writing document import filters";
|
|
license = lib.licenses.mpl20 ;
|
|
maintainers = [lib.maintainers.raskin];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|