From 2ec46d71212e0b74c9616f13c9482d9093cc2b65 Mon Sep 17 00:00:00 2001 From: David Whiting Date: Mon, 6 May 2024 10:44:13 +0100 Subject: [PATCH] pdfstudio: added 2024.0.0 Also modified how it is called in all-packages.nix to pass the by-name check. --- pkgs/applications/misc/pdfstudio/default.nix | 14 +++++++++++++ pkgs/top-level/all-packages.nix | 21 +++++++++++++------- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/misc/pdfstudio/default.nix b/pkgs/applications/misc/pdfstudio/default.nix index 21874519a7c7..8ba5610222af 100644 --- a/pkgs/applications/misc/pdfstudio/default.nix +++ b/pkgs/applications/misc/pdfstudio/default.nix @@ -77,4 +77,18 @@ in }; jdk = jdk17; }; + + pdfstudio2024 = callPackage ./common.nix rec { + inherit desktopName longDescription pname program year; + version = "${year}.0.0"; + src = fetchurl { + url = "https://download.qoppa.com/pdfstudio/v${year}/PDFStudio_v${dot2dash version}_linux64.deb"; + sha256 = "sha256-9TMSKtBE0+T7wRnBgtUjRr/JUmCaYdyD/7y0ML37wCM="; + }; + extraBuildInputs = [ + (lib.getLib stdenv.cc.cc) # for libstdc++.so.6 and libgomp.so.1 + ]; + jdk = jdk17; + }; + }.${pname} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0069567d1fb2..048421b2aaff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29659,13 +29659,20 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Cocoa; }; - pdfstudio2021 = callPackage ../applications/misc/pdfstudio { year = "2021"; }; - - pdfstudio2022 = callPackage ../applications/misc/pdfstudio { year = "2022"; }; - - pdfstudio2023 = callPackage ../applications/misc/pdfstudio { year = "2023"; }; - - pdfstudioviewer = callPackage ../applications/misc/pdfstudio { program = "pdfstudioviewer"; }; + inherit + ({ + pdfstudio2021 = callPackage ../applications/misc/pdfstudio { year = "2021"; }; + pdfstudio2022 = callPackage ../applications/misc/pdfstudio { year = "2022"; }; + pdfstudio2023 = callPackage ../applications/misc/pdfstudio { year = "2023"; }; + pdfstudio2024 = callPackage ../applications/misc/pdfstudio { year = "2024"; }; + pdfstudioviewer = callPackage ../applications/misc/pdfstudio { program = "pdfstudioviewer"; }; + }) + pdfstudio2021 + pdfstudio2022 + pdfstudio2023 + pdfstudio2024 + pdfstudioviewer + ; abaddon = callPackage ../applications/networking/instant-messengers/abaddon { };