depot/third_party/nixpkgs/pkgs/desktops/deepin/library/docparser/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

40 lines
754 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 = "A document parser library ported from document2html";
homepage = "https://github.com/linuxdeepin/docparser";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}