2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, maven
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
maven.buildMavenPackage rec {
|
|
|
|
pname = "mariadb-connector-java";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.4.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mariadb-corporation";
|
|
|
|
repo = "mariadb-connector-j";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-4DsRTXjSKgC/mz3divnqdioFQnqgQXwRKNv4xxvH0H8=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
mvnHash = "sha256-7O+G5HT6mtp12zWL3Gn12KPVUwp3GMaWGvXX6Sg1+6k=";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
doCheck = false; # Requires networking
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
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/";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ anthonyroussel ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|