fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ lib
|
|
, maven
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
}:
|
|
|
|
maven.buildMavenPackage rec {
|
|
pname = "mariadb-connector-java";
|
|
version = "3.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mariadb-corporation";
|
|
repo = "mariadb-connector-j";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-4DsRTXjSKgC/mz3divnqdioFQnqgQXwRKNv4xxvH0H8=";
|
|
};
|
|
|
|
mvnHash = "sha256-7O+G5HT6mtp12zWL3Gn12KPVUwp3GMaWGvXX6Sg1+6k=";
|
|
|
|
doCheck = false; # Requires networking
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -m444 -D target/mariadb-java-client-${version}.jar $out/share/java/mariadb-java-client.jar
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
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.lgpl21Plus;
|
|
maintainers = with maintainers; [ anthonyroussel ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|