11 stdenv.mkDerivation rec {
12 pname = "pdfsam-basic";
16 url = "https://github.com/torakiki/pdfsam/releases/download/v${version}/pdfsam_${version}-1_amd64.deb";
17 hash = "sha256-ZLVO2VD0XUVUG/GSot21c6nJ2N8h39vDzyzAzk1pQ6c=";
25 nativeBuildInputs = [ wrapGAppsHook3 ];
26 buildInputs = [ glib ];
29 gappsWrapperArgs+=(--set JAVA_HOME "${jdk21}" --set PDFSAM_JAVA_PATH "${jdk21}")
33 cp -R opt/pdfsam-basic/ $out/
34 mkdir -p "$out"/share/icons
35 cp --recursive ${desktopItem}/share/applications $out/share
36 cp $out/icon.svg "$out"/share/icons/pdfsam-basic.svg
39 desktopItem = makeDesktopItem {
43 comment = meta.description;
44 desktopName = "PDFsam Basic";
45 genericName = "PDF Split and Merge";
46 mimeTypes = [ "application/pdf" ];
47 categories = [ "Office" ];
51 homepage = "https://github.com/torakiki/pdfsam";
52 description = "Multi-platform software designed to extract pages, split, merge, mix and rotate PDF files";
53 mainProgram = "pdfsam-basic";
54 sourceProvenance = with sourceTypes; [
58 license = licenses.agpl3Plus;
59 platforms = platforms.linux;
60 maintainers = with maintainers; [ _1000101 ];