depot/pkgs/desktops/deepin/library/deepin-pdfium/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

43 lines
753 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
libsForQt5,
pkg-config,
libchardet,
lcms2,
openjpeg,
}:
stdenv.mkDerivation rec {
pname = "deepin-pdfium";
version = "1.0.2";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-ymJSTAccwRumXrh4VjwarKYgaqadMBrtXM1rjWNfe8o=";
};
nativeBuildInputs = [
libsForQt5.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;
};
}