1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-25 10:36:36 +03:00
Martin Joerg 2025-05-09 08:59:03 +00:00
parent e1cc741037
commit 1a37c3d6fa

View file

@ -14,13 +14,13 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "pdf4qt"; pname = "pdf4qt";
version = "1.5.0.0"; version = "1.5.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "JakubMelka"; owner = "JakubMelka";
repo = "PDF4QT"; repo = "PDF4QT";
rev = "v${finalAttrs.version}"; tag = "v${finalAttrs.version}";
hash = "sha256-ELdmnOEKFGCtuf240R/0M6r8aPwRQiXurAxrqcCZvOI="; hash = "sha256-Ysrz/uCSTFK5wGNdTXhpq6QVf7Ju1xWisNVUtBtdEjc=";
}; };
patches = [ patches = [
@ -30,19 +30,6 @@ stdenv.mkDerivation (finalAttrs: {
./find_lcms2_path.patch ./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 = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config
@ -83,8 +70,9 @@ stdenv.mkDerivation (finalAttrs: {
functionality based on PDF Reference 2.0. functionality based on PDF Reference 2.0.
''; '';
homepage = "https://jakubmelka.github.io"; homepage = "https://jakubmelka.github.io";
license = lib.licenses.lgpl3Only; changelog = "https://github.com/JakubMelka/PDF4QT/releases/tag/v${finalAttrs.version}";
mainProgram = "Pdf4QtViewerLite"; license = lib.licenses.mit;
mainProgram = "Pdf4QtViewer";
maintainers = with lib.maintainers; [ aleksana ]; maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
}; };