summary refs log tree commit diff
path: root/pkgs/development/libraries/libpst/default.nix
blob: f51db1d6c6ded7c354bf4fd2f04ec0e54c8df28c (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ lib
, stdenv
, fetchurl
, autoreconfHook
, pkg-config
, bzip2
, doxygen
, gettext
, imagemagick
, libgsf
, xmlto
}:

stdenv.mkDerivation rec {
  pname = "libpst";
  version = "0.6.76";

  src = fetchurl {
    url = "http://www.five-ten-sg.com/libpst/packages/${pname}-${version}.tar.gz";
    sha256 = "0hhbbb8ddsgjhv9y1xd8s9ixlhdnjmhw12v06jwx4j6vpgp1na9x";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
    doxygen
    gettext
    xmlto
  ];

  buildInputs = [
    bzip2
    imagemagick
    libgsf
  ];

  configureFlags = [
    "--enable-python=no"
    "--disable-static"
    "--enable-libpst-shared"
  ];

  doCheck = true;

  meta = with lib; {
    homepage = "https://www.five-ten-sg.com/libpst/";
    description = "A library to read PST (MS Outlook Personal Folders) files";
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.tohl ];
    platforms = platforms.unix;
  };
}