bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
40 lines
752 B
Nix
40 lines
752 B
Nix
{ 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;
|
|
};
|
|
}
|