Martin Joerg 2025-05-09 08:59:03 +00:00
parent e1cc741037
commit 1a37c3d6fa

View file

@ -14,13 +14,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "pdf4qt";
version = "1.5.0.0";
version = "1.5.1.0";
src = fetchFromGitHub {
owner = "JakubMelka";
repo = "PDF4QT";
rev = "v${finalAttrs.version}";
hash = "sha256-ELdmnOEKFGCtuf240R/0M6r8aPwRQiXurAxrqcCZvOI=";
tag = "v${finalAttrs.version}";
hash = "sha256-Ysrz/uCSTFK5wGNdTXhpq6QVf7Ju1xWisNVUtBtdEjc=";
};
patches = [
@ -30,19 +30,6 @@ stdenv.mkDerivation (finalAttrs: {
./find_lcms2_path.patch
];
# make calls to QString::arg compatible with Qt 6.9
# see https://doc-snapshots.qt.io/qt6-6.9/whatsnew69.html#new-features-in-qt-6-9
postPatch = ''
substituteInPlace Pdf4QtLibCore/sources/pdf{documentsanitizer,optimizer}.cpp \
--replace-fail \
'.arg(counter)' \
'.arg<PDFInteger>(counter)'
substituteInPlace Pdf4QtLibCore/sources/pdfoptimizer.cpp \
--replace-fail \
'.arg(bytesSaved)' \
'.arg<PDFInteger>(bytesSaved)'
'';
nativeBuildInputs = [
cmake
pkg-config
@ -83,8 +70,9 @@ stdenv.mkDerivation (finalAttrs: {
functionality based on PDF Reference 2.0.
'';
homepage = "https://jakubmelka.github.io";
license = lib.licenses.lgpl3Only;
mainProgram = "Pdf4QtViewerLite";
changelog = "https://github.com/JakubMelka/PDF4QT/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
mainProgram = "Pdf4QtViewer";
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.linux;
};