mariadb-connector-java: init at 3.2.0
https://mariadb.com/kb/en/about-mariadb-connector-j/
This commit is contained in:
parent
fe1e9d524b
commit
40ba1f1f72
1 changed files with 33 additions and 0 deletions
33
pkgs/by-name/ma/mariadb-connector-java/package.nix
Normal file
33
pkgs/by-name/ma/mariadb-connector-java/package.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib, maven, fetchFromGitHub }:
|
||||
|
||||
maven.buildMavenPackage rec {
|
||||
pname = "mariadb-connector-java";
|
||||
version = "3.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mariadb-corporation";
|
||||
repo = "mariadb-connector-j";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-ssh6v2h/Ikl2Ulim6lSJ45avjKSCh3Vmtg+LPOgONRU=";
|
||||
};
|
||||
|
||||
mvnHash = "sha256-MizBoFlpYxwwcU7rOac1h2VPJoXv3eRQgWRgsTh8Xno=";
|
||||
|
||||
# Disable tests because they require networking
|
||||
mvnParameters = "-DskipTests";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -m444 -D target/mariadb-java-client-${version}.jar $out/share/java/mariadb-java-client.jar
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases";
|
||||
homepage = "https://mariadb.com/kb/en/about-mariadb-connector-j/";
|
||||
changelog = "https://mariadb.com/kb/en/mariadb-connector-j-release-notes/";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ anthonyroussel ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue