1{ stdenv, fetchurl, boost, pkgconfig, librevenge, zlib }:
2
3stdenv.mkDerivation rec {
4 pname = "libwps";
5 version = "0.4.10";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/libwps/${pname}-${version}.tar.bz2";
9 sha256 = "1adx2wawl0i16p8df80m6k6a137h709ip4zc0zlzr6wal8gpn0i4";
10 };
11
12 nativeBuildInputs = [ pkgconfig ];
13 buildInputs = [ boost librevenge zlib ];
14
15 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough";
16
17 meta = with stdenv.lib; {
18 homepage = http://libwps.sourceforge.net/;
19 description = "Microsoft Works document format import filter library";
20 platforms = platforms.unix;
21 license = licenses.lgpl21;
22 };
23}