Merge pull request #224038 from wineee/deepin-pdfium

This commit is contained in:
Sandro 2023-04-06 01:15:13 +02:00 committed by GitHub
commit cbf82c7a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -18,6 +18,7 @@ let
dtkcore = callPackage ./library/dtkcore { };
dtkgui = callPackage ./library/dtkgui { };
dtkwidget = callPackage ./library/dtkwidget { };
deepin-pdfium = callPackage ./library/deepin-pdfium { };
qt5platform-plugins = callPackage ./library/qt5platform-plugins { };
qt5integration = callPackage ./library/qt5integration { };
deepin-wayland-protocols = callPackage ./library/deepin-wayland-protocols { };

View File

@ -0,0 +1,42 @@
{ stdenv
, lib
, fetchFromGitHub
, qmake
, pkg-config
, libchardet
, lcms2
, openjpeg
}:
stdenv.mkDerivation rec {
pname = "deepin-pdfium";
version = "1.0.1";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-gUIQ+fZ7VaYaIj1hbzER10ceoJZbvhJlnDTFIShMrKw=";
};
nativeBuildInputs = [
qmake
pkg-config
];
dontWrapQtApps = true;
buildInputs = [
libchardet
lcms2
openjpeg
];
meta = with lib; {
description = "development library for pdf on deepin";
homepage = "https://github.com/linuxdeepin/deepin-pdfium";
license = licenses.lgpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}