Merge pull request #131529 from SuperSandro2000/jdbc
mysql_jdbc: modernize
This commit is contained in:
commit
3adb10d897
@ -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
|
@ -1,19 +1,28 @@
|
||||
{lib, stdenv, fetchurl, ant, unzip}:
|
||||
{ lib, stdenv, fetchurl, ant, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mysql-connector-java";
|
||||
version = "5.1.46";
|
||||
builder = ./builder.sh;
|
||||
version = "5.1.49";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://dev.mysql.com/get/Downloads/Connector-J/${pname}-${version}.zip";
|
||||
sha256 = "0dfjshrrx0ndfb6xbdpwhn1f1jkw0km57rgpar0ny8ixmgdnlwnm";
|
||||
url = "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-${version}.zip";
|
||||
sha256 = "1bm4mm4xka4pq2rwxx3k8xlcpa1vjcglr3pf4ls2i4hamww047yk";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/java
|
||||
cp mysql-connector-java-*-bin.jar $out/share/java/mysql-connector-java.jar
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
buildInputs = [ ant ];
|
||||
|
||||
meta = {
|
||||
platforms = lib.platforms.unix;
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user