{stdenv, fetchurl, unzip}:

stdenv.mkDerivation {
  name = "batik-1.6";
  builder = ./builder.sh;
  src = fetchurl {
    url = "http://tarballs.nixos.org/batik-1.6.zip";
    sha256 = "0cf15dspmzcnfda8w5lbsdx28m4v2rpq1dv5zx0r0n99ihqd1sh6";
  };

  buildInputs = [unzip];

  meta = with stdenv.lib; {
    description = "Java based toolkit for handling SVG";
    homepage = "https://xmlgraphics.apache.org/batik";
    license = licenses.asl20;
    platforms = platforms.unix;
    knownVulnerabilities = [
      # vulnerabilities as of 16th October 2018 from https://xmlgraphics.apache.org/security.html:
      "CVE-2018-8013"
      "CVE-2017-5662"
      "CVE-2015-0250"
    ];
  };
}
