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