From 9ff655f4608b62841dcb1f2f00f5bb98a4aed636 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Thu, 15 May 2025 15:58:51 +0200 Subject: [PATCH] Revert "pdftk: use minimal jre" This reverts commit cbef4f28aa92fa31f1b830c76e180ba1d971cbb4. Using the minimal jre results in classes needed for some operations no longer being available, e.g. when attempting to fill a form: Error: could not load a required library for this operation. java.lang.NoClassDefFoundError: java/awt/Color Make sure that bcprov and commons-lang3 are installed and included in the classpath. See also https://gitlab.com/pdftk-java/pdftk/issues/2. No output created. --- pkgs/by-name/pd/pdftk/package.nix | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkgs/by-name/pd/pdftk/package.nix b/pkgs/by-name/pd/pdftk/package.nix index d21f0b2d3117..025652d69b87 100644 --- a/pkgs/by-name/pd/pdftk/package.nix +++ b/pkgs/by-name/pd/pdftk/package.nix @@ -3,20 +3,12 @@ stdenv, fetchFromGitLab, gradle_8, - jre_headless, - jre_minimal, + jre, runtimeShell, }: let # "Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0." gradle = gradle_8; - - jre = jre_minimal.override { - modules = [ - "java.base" - ]; - jdk = jre_headless; - }; in stdenv.mkDerivation rec { pname = "pdftk";