depot/third_party/nixpkgs/pkgs/desktops/deepin/library/docparser/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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;
};
}