From b88b470abb1bbd9dd74c750c798b367b0d367501 Mon Sep 17 00:00:00 2001 From: rewine Date: Fri, 31 Mar 2023 16:34:48 +0800 Subject: [PATCH] deepin.deepin-pdfium: init at 1.0.1 --- pkgs/desktops/deepin/default.nix | 1 + .../deepin/library/deepin-pdfium/default.nix | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 pkgs/desktops/deepin/library/deepin-pdfium/default.nix diff --git a/pkgs/desktops/deepin/default.nix b/pkgs/desktops/deepin/default.nix index f9bbf7df5eb7..b3392949df72 100644 --- a/pkgs/desktops/deepin/default.nix +++ b/pkgs/desktops/deepin/default.nix @@ -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 { }; diff --git a/pkgs/desktops/deepin/library/deepin-pdfium/default.nix b/pkgs/desktops/deepin/library/deepin-pdfium/default.nix new file mode 100644 index 000000000000..ef496931bea2 --- /dev/null +++ b/pkgs/desktops/deepin/library/deepin-pdfium/default.nix @@ -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; + }; +}