ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ma / mariadb-connector-java / package.nix
blob6d39657ab826373750032a7726d41646b8e1a123
1 { lib
2 , maven
3 , fetchFromGitHub
4 , nix-update-script
5 }:
7 maven.buildMavenPackage rec {
8   pname = "mariadb-connector-java";
9   version = "3.4.1";
11   src = fetchFromGitHub {
12     owner = "mariadb-corporation";
13     repo = "mariadb-connector-j";
14     rev = "refs/tags/${version}";
15     hash = "sha256-MDC0flAD56cXLiLNytbjp0au1NACugFNEpHxbucZO4U=";
16   };
18   mvnHash = "sha256-kwKL37LCv4rQYc4bYdyP1tOaovJ8pSp7p52nuk10z/U=";
20   doCheck = false; # Requires networking
22   installPhase = ''
23     runHook preInstall
24     install -m444 -D target/mariadb-java-client-${version}.jar $out/share/java/mariadb-java-client.jar
25     runHook postInstall
26   '';
28   passthru.updateScript = nix-update-script { };
30   meta = with lib; {
31     description = "MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases";
32     homepage = "https://mariadb.com/kb/en/about-mariadb-connector-j/";
33     changelog = "https://mariadb.com/kb/en/mariadb-connector-j-release-notes/";
34     license = licenses.lgpl21Plus;
35     maintainers = with maintainers; [ anthonyroussel ];
36     platforms = platforms.all;
37   };