11 stdenvNoCC.mkDerivation (finalAttrs: {
16 url = "mirror://apache/xmlgraphics/batik/binaries/batik-bin-${finalAttrs.version}.tar.gz";
17 hash = "sha256-sEJphF3grlwZCEt3gHHm4JF8RpvKKBLLvKXf2lu/dhA=";
31 # Vendored dependencies
36 mkdir -p $out/bin $out/share/java
37 cp *.jar lib/*.jar $out/share/java
38 chmod +x $out/share/java/*.jar
39 classpath="$(find $out/share/java -name '*.jar' -printf '${rhino}/share/java/js.jar:%h/%f')"
40 for appName in rasterizer slideshow squiggle svgpp ttf2svg; do
41 makeWrapper ${lib.getExe jre} $out/bin/batik-$appName \
42 --add-flags "-jar $out/share/java/batik-all-${finalAttrs.version}.jar" \
43 --add-flags "-classpath $classpath" \
44 --add-flags "org.apache.batik.apps.$appName.Main"
49 description = "Java based toolkit for handling SVG";
50 homepage = "https://xmlgraphics.apache.org/batik";
51 license = licenses.asl20;
52 platforms = platforms.unix;
53 sourceProvenance = with sourceTypes; [ binaryBytecode ];