Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
80 lines
1.7 KiB
Nix
80 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
lcms,
|
|
cmake,
|
|
pkg-config,
|
|
qt6,
|
|
wrapGAppsHook3,
|
|
openjpeg,
|
|
onetbb,
|
|
blend2d,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "pdf4qt";
|
|
version = "1.5.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JakubMelka";
|
|
repo = "PDF4QT";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Ysrz/uCSTFK5wGNdTXhpq6QVf7Ju1xWisNVUtBtdEjc=";
|
|
};
|
|
|
|
patches = [
|
|
# lcms2 cmake module only appears when built with vcpkg.
|
|
# We directly search for the corresponding libraries and
|
|
# header files instead.
|
|
./find_lcms2_path.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
qt6.qttools
|
|
qt6.wrapQtAppsHook
|
|
# GLib-GIO-ERROR: No GSettings schemas are installed on the system
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
qt6.qtbase
|
|
qt6.qtwayland
|
|
qt6.qtsvg
|
|
qt6.qtspeech
|
|
lcms
|
|
openjpeg
|
|
onetbb
|
|
blend2d
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "PDF4QT_INSTALL_TO_USR" false)
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
qtWrapperArgs+=(''${gappsWrapperArgs[@]})
|
|
'';
|
|
|
|
meta = {
|
|
description = "Open source PDF editor";
|
|
longDescription = ''
|
|
This software is consisting of PDF rendering library,
|
|
and several applications, such as advanced document
|
|
viewer, command line tool, and document page
|
|
manipulator application. Software is implementing PDF
|
|
functionality based on PDF Reference 2.0.
|
|
'';
|
|
homepage = "https://jakubmelka.github.io";
|
|
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;
|
|
};
|
|
})
|