mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
50 lines
948 B
Nix
50 lines
948 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
boost,
|
|
doxygen,
|
|
gperf,
|
|
pkg-config,
|
|
librevenge,
|
|
libxml2,
|
|
perl,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libabw";
|
|
version = "0.1.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://dev-www.libreoffice.org/src/libabw/libabw-${finalAttrs.version}.tar.xz";
|
|
sha256 = "sha256-+iaFo0QNpuA6Zqd4SA2Ty5X2Bk5FQeWONzl2gHYP1qA=";
|
|
};
|
|
|
|
# Boost 1.59 compatibility fix
|
|
# Attempt removing when updating
|
|
postPatch = ''
|
|
sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
doxygen
|
|
gperf
|
|
perl
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
boost
|
|
librevenge
|
|
libxml2
|
|
zlib
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://wiki.documentfoundation.org/DLP/Libraries/libabw";
|
|
description = "Library parsing abiword documents";
|
|
platforms = lib.platforms.unix;
|
|
license = lib.licenses.mpl20;
|
|
};
|
|
})
|