about summary refs log tree commit diff
path: root/pkgs/desktops/deepin/library/docparser/default.nix
blob: 41b9a8ee7ce39aea1bc4f4d4bbbbd7d4274cb17f (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
{ stdenv
, lib
, fetchFromGitHub
, pkg-config
, qmake
, qttools
, wrapQtAppsHook
, poppler
}:

stdenv.mkDerivation rec {
  pname = "docparser";
  version = "1.0.3";

  src = fetchFromGitHub {
    owner = "linuxdeepin";
    repo = pname;
    rev = version;
    sha256 = "sha256-iWRWSu8fALTTLLWdQGbpunN/1tpvKxuN/ZWJg34x0mU=";
  };

  nativeBuildInputs = [
    qmake
    qttools
    pkg-config
    wrapQtAppsHook
  ];

  buildInputs = [ poppler ];

  qmakeFlags = [ "VERSION=${version}" ];

  meta = with lib; {
    description = "Document parser library ported from document2html";
    homepage = "https://github.com/linuxdeepin/docparser";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = teams.deepin.members;
  };
}