plantuml: Support PDF output

Upstream seems to publish releases on sourceforge as well as on the Github
repository, whereas the Github releases also contain a plantuml-pdf artifact
which includes the needed dependencies (Apache batik) to support PDF output.

Fixes #129937
This commit is contained in:
Claudio Bley 2022-04-14 08:49:10 +02:00 committed by Bjørn Forsman
parent 04c6c6a118
commit 22fc1f600e

View File

@ -5,8 +5,8 @@ stdenv.mkDerivation rec {
pname = "plantuml";
src = fetchurl {
url = "mirror://sourceforge/project/plantuml/${version}/plantuml.${version}.jar";
sha256 = "sha256-u40P3YFiWd419Bz1NvhIsPa7nASl/I9z/L2Q5v9eOAo=";
url = "https://github.com/plantuml/plantuml/releases/download/v${version}/plantuml-pdf-${version}.jar";
sha256 = "sha256-6ad6CUz1UAvNkhdUJhOME7OsLpIXiBoERfTmowzTz64=";
};
nativeBuildInputs = [ makeWrapper ];