2021-07-26 00:30:39 +01:00
|
|
|
{ lib, stdenv, fetchurl, ant, unzip }:
|
2006-03-29 18:07:20 +01:00
|
|
|
|
2016-09-24 13:50:13 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-07-25 22:53:02 +01:00
|
|
|
pname = "mysql-connector-java";
|
2021-07-26 00:30:39 +01:00
|
|
|
version = "5.1.49";
|
2006-03-29 18:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-26 00:30:39 +01:00
|
|
|
url = "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-${version}.zip";
|
|
|
|
sha256 = "1bm4mm4xka4pq2rwxx3k8xlcpa1vjcglr3pf4ls2i4hamww047yk";
|
2006-03-29 18:07:20 +01:00
|
|
|
};
|
|
|
|
|
2021-07-26 00:30:39 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp mysql-connector-java-*-bin.jar $out/share/java/mysql-connector-java.jar
|
|
|
|
'';
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2021-07-26 00:30:39 +01:00
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
buildInputs = [ ant ];
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2021-07-26 00:30:39 +01: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;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2006-03-29 18:07:20 +01:00
|
|
|
}
|