nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, boost, doxygen, gperf, pkgconfig, librevenge, libxml2, perl }:
2
3stdenv.mkDerivation rec {
4 name = "libabw-${version}";
5 version = "0.1.1";
6
7 src = fetchurl {
8 url = "http://dev-www.libreoffice.org/src/libabw/${name}.tar.xz";
9 sha256 = "0zi1zj4fpxgpglbbb5n1kg3dmhqq5rpf46lli89r5daavp19iing";
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 buildInputs = [ boost doxygen gperf pkgconfig librevenge libxml2 perl ];
19
20 meta = with stdenv.lib; {
21 homepage = https://wiki.documentfoundation.org/DLP/Libraries/libabw;
22 description = "Library parsing abiword documents";
23 platforms = platforms.linux;
24 license = licenses.mpl20;
25 };
26}