nixpkgs/pkgs/applications/misc/pdfstudio/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.4 KiB
Nix
Raw Normal View History

{ program ? "pdfstudioviewer"
2022-01-20 20:08:23 +00:00
, fetchurl
, libgccjit
, callPackage
2022-01-20 20:08:23 +00:00
}:
2021-12-19 09:58:15 +00:00
let makeurl = { pname, year, version }: "https://download.qoppa.com/${pname}/v${year}/${
builtins.replaceStrings [ "pdfstudio" "viewer" "." ] [ "PDFStudio" "Viewer" "_" ] "${pname}_v${version}"
}_linux64.deb";
in
{
pdfstudio = callPackage ./common.nix rec {
pname = program;
year = "2021";
2022-04-18 00:41:58 +00:00
version = "${year}.1.3";
desktopName = "PDF Studio";
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.
'';
extraBuildInputs = [
libgccjit #for libstdc++.so.6 and libgomp.so.1
];
src = fetchurl {
url = makeurl { inherit pname year version; };
2022-04-18 00:41:58 +00:00
sha256 = "sha256-2az8/slWeLY7l7dCwyTaT18KFfvsO71vJFDZEvbDHGM=";
};
2021-12-19 09:58:15 +00:00
};
pdfstudioviewer = callPackage ./common.nix rec {
pname = program;
year = "2021";
2022-04-18 00:41:58 +00:00
version = "${year}.1.3";
desktopName = "PDF Studio Viewer";
longDescription = ''
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.
'';
src = fetchurl {
url = makeurl { inherit pname year version; };
2022-04-18 00:41:58 +00:00
sha256 = "sha256-kd+rQruBL0fudmc30agRO/XV97l/6unqU0GK25yhOzI=";
};
2021-12-19 09:58:15 +00:00
};
}.${program}