1{ stdenv, fetchurl, boost, doxygen, gperf, pkgconfig, librevenge, libxml2, perl }:
2
3stdenv.mkDerivation rec {
4 name = "libabw-${version}";
5 version = "0.1.2";
6
7 src = fetchurl {
8 url = "http://dev-www.libreoffice.org/src/libabw/${name}.tar.xz";
9 sha256 = "11949iscdb99f2jplxjd39282jxcrf2fw0sqbh5dl7gqb96r8whb";
10 };
11
12 # Boost 1.59 compatability fix
13 # Attempt removing when updating
14 postPatch = ''
15 sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in
16 '';
17
18 nativeBuildInputs = [ pkgconfig ];
19 buildInputs = [ boost doxygen gperf librevenge libxml2 perl ];
20
21 meta = with stdenv.lib; {
22 homepage = https://wiki.documentfoundation.org/DLP/Libraries/libabw;
23 description = "Library parsing abiword documents";
24 platforms = platforms.linux;
25 license = licenses.mpl20;
26 };
27}