Merge pull request #131529 from SuperSandro2000/jdbc
mysql_jdbc: modernize
This commit is contained in:
commit
3adb10d897
2 changed files with 16 additions and 16 deletions
|
@ -1,9 +0,0 @@
|
||||||
source $stdenv/setup
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
unzip $src
|
|
||||||
cd mysql-connector-java-*
|
|
||||||
|
|
||||||
mkdir -p $out/share/java
|
|
||||||
cp mysql-connector-java-*-bin.jar $out/share/java/mysql-connector-java.jar
|
|
|
@ -2,18 +2,27 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mysql-connector-java";
|
pname = "mysql-connector-java";
|
||||||
version = "5.1.46";
|
version = "5.1.49";
|
||||||
builder = ./builder.sh;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://dev.mysql.com/get/Downloads/Connector-J/${pname}-${version}.zip";
|
url = "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-${version}.zip";
|
||||||
sha256 = "0dfjshrrx0ndfb6xbdpwhn1f1jkw0km57rgpar0ny8ixmgdnlwnm";
|
sha256 = "1bm4mm4xka4pq2rwxx3k8xlcpa1vjcglr3pf4ls2i4hamww047yk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/java
|
||||||
|
cp mysql-connector-java-*-bin.jar $out/share/java/mysql-connector-java.jar
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [ unzip ];
|
||||||
|
|
||||||
buildInputs = [ ant ];
|
buildInputs = [ ant ];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
platforms = lib.platforms.unix;
|
description = "MySQL Connector/J";
|
||||||
|
homepage = "https://dev.mysql.com/doc/connector-j/8.0/en/";
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
license = licenses.gpl2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue