diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-04-06 01:15:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 01:15:13 +0200 |
commit | cbf82c7a58f34674a6f646feb0166b81fd59185f (patch) | |
tree | 50ef3b3de40409afb0ae7f1fb9420fafc1462dbb /pkgs/desktops/deepin | |
parent | 5ea854454e5af22f661ffe7b661eac584f4ecd76 (diff) | |
parent | b88b470abb1bbd9dd74c750c798b367b0d367501 (diff) |
Merge pull request #224038 from wineee/deepin-pdfium
Diffstat (limited to 'pkgs/desktops/deepin')
-rw-r--r-- | pkgs/desktops/deepin/default.nix | 1 | ||||
-rw-r--r-- | pkgs/desktops/deepin/library/deepin-pdfium/default.nix | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/desktops/deepin/default.nix b/pkgs/desktops/deepin/default.nix index de924812f7a9d..63289810a3dec 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 0000000000000..ef496931bea2e --- /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; + }; +} |