about summary refs log tree commit diff
path: root/pkgs/by-name/li/libetonyek/package.nix
blob: 393f542a9ea9f14364b550cea77287beb78c55db (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
53
54
55
56
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
# fails on older Boost due to https://github.com/boostorg/phoenix/issues/111
, boost184
, cppunit
, glm
, gperf
, liblangtag
, librevenge
, libxml2
, mdds
, zlib
}:

stdenv.mkDerivation rec {
  pname = "libetonyek";
  version = "0.1.10";

  src = fetchFromGitHub {
    owner = "LibreOffice";
    repo = "libetonyek";
    rev = "libetonyek-${version}";
    hash = "sha256-wgyeQj1sY78sbbZT+NZuq9HEKB+ta7wwipbfN3JkyyU=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    boost184
    cppunit
    glm
    gperf
    liblangtag
    librevenge
    libxml2
    mdds
    zlib
  ];

  configureFlags = ["--with-mdds=2.1"];

  meta = with lib; {
    description = "Library and a set of tools for reading and converting Apple iWork documents (Keynote, Pages and Numbers)";
    homepage = "https://github.com/LibreOffice/libetonyek";
    changelog = "https://github.com/LibreOffice/libetonyek/blob/${src.rev}/NEWS";
    license = licenses.mpl20;
    maintainers = [ ];
    platforms = platforms.all;
  };
}