1 # For upstream versions, download links, and change logs see https://www.qoppa.com/pdfstudio/versions
3 # PDF Studio license is for a specific year, so we need different packages for different years.
4 # All versions of PDF Studio Viewer are free, so we package only the latest year.
5 # Thus, packages are pdfstudioviewer, pdfstudio2021, pdfstudio2022, etc.
7 # - program is either "pdfstudio" or "pdfstudioviewer", defaults to "pdfstudio".
8 # - year identifies the year portion of the version, defaults to most recent year.
9 # - pname is either "pdfstudio${year}" or "pdfstudioviewer".
14 program ? "pdfstudio",
23 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.
25 pname = if (program == "pdfstudio") then "${program}${year}" else program;
26 desktopName = if (program == "pdfstudio") then "PDF Studio ${year}" else "PDF Studio Viewer";
27 dot2dash = str: builtins.replaceStrings [ "." ] [ "_" ] str;
30 pdfstudioviewer = callPackage ./common.nix rec {
37 version = "${year}.0.1";
39 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.
42 url = "https://web.archive.org/web/20241201121627/https://download.qoppa.com/pdfstudioviewer/PDFStudioViewer_linux64.deb";
43 hash = "sha256-hxReGuyGsBiEr7wWxWzQUQvxk11sgF9HkJ07L9i+e+0=";
48 pdfstudio2021 = callPackage ./common.nix rec {
56 version = "${year}.2.2";
58 url = "https://download.qoppa.com/pdfstudio/v${year}/PDFStudio_v${dot2dash version}_linux64.deb";
59 hash = "sha256-HdkwRMqwquAaW6l3AukGReFtw2f5n36tZ8vXo6QiPvU=";
62 (lib.getLib stdenv.cc.cc) # for libstdc++.so.6 and libgomp.so.1
67 pdfstudio2022 = callPackage ./common.nix rec {
75 version = "${year}.2.5";
77 url = "https://download.qoppa.com/pdfstudio/v${year}/PDFStudio_v${dot2dash version}_linux64.deb";
78 hash = "sha256-3faZyWUnFe//S+gOskWhsZ6jzHw67FRsv/xP77R1jj4=";
81 (lib.getLib stdenv.cc.cc) # for libstdc++.so.6 and libgomp.so.1
86 pdfstudio2023 = callPackage ./common.nix rec {
94 version = "${year}.0.4";
96 url = "https://download.qoppa.com/pdfstudio/v${year}/PDFStudio_v${dot2dash version}_linux64.deb";
97 hash = "sha256-TTh0yzpCOpxFKGfrakvnu1Y+l9NI0nfWlVuvSWpkRkE=";
100 (lib.getLib stdenv.cc.cc) # for libstdc++.so.6 and libgomp.so.1
105 pdfstudio2024 = callPackage ./common.nix rec {
113 version = "${year}.0.0";
115 url = "https://download.qoppa.com/pdfstudio/v${year}/PDFStudio_v${dot2dash version}_linux64.deb";
116 hash = "sha256-9TMSKtBE0+T7wRnBgtUjRr/JUmCaYdyD/7y0ML37wCM=";
119 (lib.getLib stdenv.cc.cc) # for libstdc++.so.6 and libgomp.so.1