1{ stdenv
2, lib
3, fetchFromGitHub
4, pkg-config
5, qmake
6, qttools
7, wrapQtAppsHook
8, poppler
9}:
10
11stdenv.mkDerivation rec {
12 pname = "docparser";
13 version = "1.0.3";
14
15 src = fetchFromGitHub {
16 owner = "linuxdeepin";
17 repo = pname;
18 rev = version;
19 sha256 = "sha256-iWRWSu8fALTTLLWdQGbpunN/1tpvKxuN/ZWJg34x0mU=";
20 };
21
22 nativeBuildInputs = [
23 qmake
24 qttools
25 pkg-config
26 wrapQtAppsHook
27 ];
28
29 buildInputs = [ poppler ];
30
31 qmakeFlags = [ "VERSION=${version}" ];
32
33 meta = with lib; {
34 description = "A document parser library ported from document2html";
35 homepage = "https://github.com/linuxdeepin/docparser";
36 license = licenses.gpl3Plus;
37 platforms = platforms.linux;
38 maintainers = teams.deepin.members;
39 };
40}