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"
|
2023-10-19 13:55:26 +00:00
|
|
|
, year ? "2023"
|
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;
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "${year}.0.3";
|
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 {
|
2023-03-24 00:07:29 +00:00
|
|
|
url = "https://download.qoppa.com/pdfstudioviewer/PDFStudioViewer_linux64.deb";
|
2023-10-19 13:55:26 +00:00
|
|
|
sha256 = "sha256-JQx5yJLjwW4VRXLM+/VNDXFN8ZcHJxlxyKDIzc++hEs=";
|
2022-01-25 03:21:06 +00:00
|
|
|
};
|
2023-05-24 13:37:59 +00:00
|
|
|
jdk = jdk17;
|
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;
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "${year}.2.2";
|
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";
|
2023-10-19 13:55:26 +00:00
|
|
|
sha256 = "sha256-HdkwRMqwquAaW6l3AukGReFtw2f5n36tZ8vXo6QiPvU=";
|
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 = jdk11;
|
|
|
|
};
|
|
|
|
|
|
|
|
pdfstudio2022 = callPackage ./common.nix rec {
|
|
|
|
inherit desktopName longDescription pname program year;
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "${year}.2.5";
|
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";
|
2023-10-19 13:55:26 +00:00
|
|
|
sha256 = "sha256-3faZyWUnFe//S+gOskWhsZ6jzHw67FRsv/xP77R1jj4=";
|
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
|
|
|
};
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
pdfstudio2023 = callPackage ./common.nix rec {
|
|
|
|
inherit desktopName longDescription pname program year;
|
|
|
|
version = "${year}.0.3";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.qoppa.com/pdfstudio/v${year}/PDFStudio_v${dot2dash version}_linux64.deb";
|
|
|
|
sha256 = "sha256-Po7BMmEWoC46rP7tUwZT9Ji/Wi8lKc6WN8x47fx2DXg=";
|
|
|
|
};
|
|
|
|
jdk = jdk17;
|
|
|
|
};
|
2022-10-06 18:32:54 +00:00
|
|
|
}.${pname}
|