2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchurl, ant, unzip, gitUpdater }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "mysql-connector-java";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "9.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-17 10:02:37 +00:00
|
|
|
url = "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-${version}.zip";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-3Czzu7hheuF0FYF8+GtjkxXSXfxTaqHrPa/+69I8Wfg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/java
|
2022-12-17 10:02:37 +00:00
|
|
|
cp mysql-connector-j-*.jar $out/share/java/mysql-connector-j.jar
|
2021-08-05 21:33:18 +00:00
|
|
|
'';
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
buildInputs = [ ant ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
url = "https://github.com/mysql/mysql-connector-j.git";
|
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "MySQL Connector/J";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://dev.mysql.com/doc/connector-j/en/";
|
|
|
|
changelog = "https://dev.mysql.com/doc/relnotes/connector-j/en/";
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-08-05 21:33:18 +00:00
|
|
|
platforms = platforms.unix;
|
2024-06-05 15:53:02 +00:00
|
|
|
license = licenses.gpl2Only;
|
2023-11-16 04:20:00 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|