2021-08-05 21:33:18 +00:00
|
|
|
{ lib, stdenv, fetchurl, ant, unzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "mysql-connector-java";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "8.0.33";
|
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";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-k3jft7sM2xrc88mdhltxtm+SZcRAn6B4EvglMyJyX4Y=";
|
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
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "MySQL Connector/J";
|
|
|
|
homepage = "https://dev.mysql.com/doc/connector-j/8.0/en/";
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|