lock: 1.3.0 -> 1.3.4 (#364295)
[NixPkgs.git] / pkgs / by-name / my / mysql_jdbc / package.nix
blobbcafbc7b52f521f74010dcb2ca52370a5d6c2eb2
2   lib,
3   stdenv,
4   fetchurl,
5   ant,
6   unzip,
7   gitUpdater,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "mysql-connector-java";
12   version = "9.1.0";
14   src = fetchurl {
15     url = "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-${version}.zip";
16     hash = "sha256-cs3VP+Rd99JrITkxqlVLn9x5FPyrppZcImhdE10VT0U=";
17   };
19   installPhase = ''
20     mkdir -p $out/share/java
21     cp mysql-connector-j-*.jar $out/share/java/mysql-connector-j.jar
22   '';
24   nativeBuildInputs = [ unzip ];
26   buildInputs = [ ant ];
28   passthru.updateScript = gitUpdater {
29     url = "https://github.com/mysql/mysql-connector-j.git";
30   };
32   meta = with lib; {
33     description = "MySQL Connector/J";
34     homepage = "https://dev.mysql.com/doc/connector-j/en/";
35     changelog = "https://dev.mysql.com/doc/relnotes/connector-j/en/";
36     maintainers = [ ];
37     platforms = platforms.unix;
38     license = licenses.gpl2Only;
39     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
40   };