2022-10-06 18:32:54 +00:00
|
|
|
# For upstream versions, download links, and change logs see https://www.qoppa.com/pdfstudio/versions
|
|
|
|
#
|
|
|
|
# PDF Studio license is for a specific year, so we need different packages for different years.
|
|
|
|
# All versions of PDF Studio Viewer are free, so we package only the latest year.
|
|
|
|
# Thus, packages are pdfstudioviewer, pdfstudio2021, pdfstudio2022, etc.
|
|
|
|
# Variables:
|
|
|
|
# - program is either "pdfstudio" or "pdfstudioviewer", defaults to "pdfstudio".
|
|
|
|
# - year identifies the year portion of the version, defaults to most recent year.
|
|
|
|
# - pname is either "pdfstudio${year}" or "pdfstudioviewer".
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, program ? "pdfstudio"
|
2022-10-06 18:32:54 +00:00
|
|
|
, year ? "2022"
|
2022-01-23 02:10:13 +00:00
|
|
|
, fetchurl
|
2022-01-25 03:21:06 +00:00
|
|
|
, callPackage
|
2022-10-06 18:32:54 +00:00
|
|
|
, jdk11
|
|
|
|
, jdk17
|
2022-01-23 02:10:13 +00:00
|
|
|
}:
|
2022-10-06 18:32:54 +00:00
|
|
|
let
|
|
|
|
longDescription = ''
|
|
|
|
PDF Studio is an easy to use, full-featured PDF editing software. This is the standard/pro edition, which requires a license. For the free PDF Studio Viewer see the package pdfstudioviewer.
|
|
|
|
'';
|
|
|
|
pname = if (program == "pdfstudio") then "${program}${year}" else program;
|
|
|
|
desktopName =
|
|
|
|
if (program == "pdfstudio")
|
|
|
|
then "PDF Studio ${year}"
|
|
|
|
else "PDF Studio Viewer";
|
|
|
|
dot2dash = str: builtins.replaceStrings [ "." ] [ "_" ] str;
|
2022-02-10 20:34:41 +00:00
|
|
|
in
|
2022-01-25 03:21:06 +00:00
|
|
|
{
|
2022-10-06 18:32:54 +00:00
|
|
|
pdfstudioviewer = callPackage ./common.nix rec {
|
|
|
|
inherit desktopName pname program year;
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "${year}.1.0";
|
2022-01-25 03:21:06 +00:00
|
|
|
longDescription = ''
|
2022-10-06 18:32:54 +00:00
|
|
|
PDF Studio Viewer is an easy to use, full-featured PDF editing software. This is the free edition. For the standard/pro edition, see the package pdfstudio.
|
2022-01-25 03:21:06 +00:00
|
|
|
'';
|
|
|
|
src = fetchurl {
|
2022-10-06 18:32:54 +00:00
|
|
|
url = "https://web.archive.org/web/20220909093140/https://download.qoppa.com/pdfstudioviewer/PDFStudioViewer_linux64.deb";
|
|
|
|
sha256 = "sha256-za+a5vGkINLFvFoZdnB++4VGE9rfdfZf5HFNw/Af1AA=";
|
2022-01-25 03:21:06 +00:00
|
|
|
};
|
2022-10-06 18:32:54 +00:00
|
|
|
jdk = jdk11;
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
pdfstudio2021 = callPackage ./common.nix rec {
|
|
|
|
inherit desktopName longDescription pname program year;
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "${year}.2.0";
|
2022-01-25 03:21:06 +00:00
|
|
|
src = fetchurl {
|
2022-10-06 18:32:54 +00:00
|
|
|
url = "https://download.qoppa.com/pdfstudio/v${year}/PDFStudio_v${dot2dash version}_linux64.deb";
|
|
|
|
sha256 = "sha256-wQgVWz2kS+XkrqvCAUishizfDrCwGyVDAAU4Yzj4uYU=";
|
|
|
|
};
|
|
|
|
extraBuildInputs = [
|
2023-03-04 12:14:45 +00:00
|
|
|
(lib.getLib stdenv.cc.cc) # for libstdc++.so.6 and libgomp.so.1
|
2022-10-06 18:32:54 +00:00
|
|
|
];
|
|
|
|
jdk = jdk11;
|
|
|
|
};
|
|
|
|
|
|
|
|
pdfstudio2022 = callPackage ./common.nix rec {
|
|
|
|
inherit desktopName longDescription pname program year;
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "${year}.1.3";
|
2022-10-06 18:32:54 +00:00
|
|
|
src = fetchurl {
|
2022-10-30 15:09:59 +00:00
|
|
|
url = "https://download.qoppa.com/pdfstudio/v${year}/PDFStudio_v${dot2dash version}_linux64.deb";
|
2022-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-B3RrftuKsPWUWP9hwnq4i311hgZgwZLqG1pJLdilfQI=";
|
2022-01-25 03:21:06 +00:00
|
|
|
};
|
2022-10-06 18:32:54 +00:00
|
|
|
extraBuildInputs = [
|
2023-03-04 12:14:45 +00:00
|
|
|
(lib.getLib stdenv.cc.cc) # for libstdc++.so.6 and libgomp.so.1
|
2022-10-06 18:32:54 +00:00
|
|
|
];
|
|
|
|
jdk = jdk17;
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
2022-10-06 18:32:54 +00:00
|
|
|
}.${pname}
|