btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / my / mysql_jdbc / package.nix
blob1a92e75b93220dc1fcf9d00338982039b9aae06b
1 { lib, stdenv, fetchurl, ant, unzip, gitUpdater }:
3 stdenv.mkDerivation rec {
4   pname = "mysql-connector-java";
5   version = "9.0.0";
7   src = fetchurl {
8     url = "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-${version}.zip";
9     hash = "sha256-3Czzu7hheuF0FYF8+GtjkxXSXfxTaqHrPa/+69I8Wfg=";
10   };
12   installPhase = ''
13     mkdir -p $out/share/java
14     cp mysql-connector-j-*.jar $out/share/java/mysql-connector-j.jar
15   '';
17   nativeBuildInputs = [ unzip ];
19   buildInputs = [ ant ];
21   passthru.updateScript = gitUpdater {
22     url = "https://github.com/mysql/mysql-connector-j.git";
23   };
25   meta = with lib; {
26     description = "MySQL Connector/J";
27     homepage = "https://dev.mysql.com/doc/connector-j/en/";
28     changelog = "https://dev.mysql.com/doc/relnotes/connector-j/en/";
29     maintainers = [ ];
30     platforms = platforms.unix;
31     license = licenses.gpl2Only;
32     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
33   };