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