summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/li/libwps/package.nix
blob: aef5555628e11081ae40e3b18ba80b47d0b124ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  stdenv,
  fetchurl,
  boost,
  pkg-config,
  librevenge,
  zlib,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libwps";
  version = "0.4.14";

  src = fetchurl {
    url = "mirror://sourceforge/libwps/libwps-${finalAttrs.version}.tar.bz2";
    sha256 = "sha256-xVEdlAngO446F50EZcHMKW7aBvyDcTVu9Egs2oaIadE=";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [
    boost
    librevenge
    zlib
  ];

  env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough";

  meta = {
    homepage = "https://libwps.sourceforge.net/";
    description = "Microsoft Works document format import filter library";
    platforms = lib.platforms.unix;
    license = lib.licenses.lgpl21;
  };
})