diff --git a/pkgs/by-name/pd/pdf4qt/package.nix b/pkgs/by-name/pd/pdf4qt/package.nix index 6e64e55eabcd..94e92d587920 100644 --- a/pkgs/by-name/pd/pdf4qt/package.nix +++ b/pkgs/by-name/pd/pdf4qt/package.nix @@ -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(counter)' - substituteInPlace Pdf4QtLibCore/sources/pdfoptimizer.cpp \ - --replace-fail \ - '.arg(bytesSaved)' \ - '.arg(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; };