10 stdenv.mkDerivation rec {
11 pname = "mysql-connector-java";
15 url = "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-${version}.zip";
16 hash = "sha256-cs3VP+Rd99JrITkxqlVLn9x5FPyrppZcImhdE10VT0U=";
20 mkdir -p $out/share/java
21 cp mysql-connector-j-*.jar $out/share/java/mysql-connector-j.jar
24 nativeBuildInputs = [ unzip ];
26 buildInputs = [ ant ];
28 passthru.updateScript = gitUpdater {
29 url = "https://github.com/mysql/mysql-connector-j.git";
33 description = "MySQL Connector/J";
34 homepage = "https://dev.mysql.com/doc/connector-j/en/";
35 changelog = "https://dev.mysql.com/doc/relnotes/connector-j/en/";
37 platforms = platforms.unix;
38 license = licenses.gpl2Only;
39 sourceProvenance = with sourceTypes; [ binaryNativeCode ];