159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
51 lines
863 B
Nix
51 lines
863 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
qmake,
|
|
qttools,
|
|
wrapQtAppsHook,
|
|
poppler,
|
|
pugixml,
|
|
libzip,
|
|
libuuid,
|
|
tinyxml-2,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "docparser";
|
|
version = "1.0.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxdeepin";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-shZXhs9ncgm6rECvCWrLi26RO1WAc1gRowoYmeKesfk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
qmake
|
|
qttools
|
|
pkg-config
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
poppler
|
|
pugixml
|
|
libzip
|
|
libuuid
|
|
tinyxml-2
|
|
];
|
|
|
|
qmakeFlags = [ "VERSION=${version}" ];
|
|
|
|
meta = {
|
|
description = "Document parser library ported from document2html";
|
|
homepage = "https://github.com/linuxdeepin/docparser";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = lib.teams.deepin.members;
|
|
};
|
|
}
|