From 07b6a5196ce7e4db94ae72ca3eee22ff3c27b4ff Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 29 Mar 2006 17:07:20 +0000 Subject: [PATCH] * MySQL JDBC connector. svn path=/nixpkgs/trunk/; revision=5124 --- pkgs/servers/sql/mysql/jdbc/builder.sh | 9 +++++++++ pkgs/servers/sql/mysql/jdbc/default.nix | 13 +++++++++++++ pkgs/top-level/all-packages.nix | 5 +++++ 3 files changed, 27 insertions(+) create mode 100644 pkgs/servers/sql/mysql/jdbc/builder.sh create mode 100644 pkgs/servers/sql/mysql/jdbc/default.nix diff --git a/pkgs/servers/sql/mysql/jdbc/builder.sh b/pkgs/servers/sql/mysql/jdbc/builder.sh new file mode 100644 index 000000000000..a85cd11d5d2d --- /dev/null +++ b/pkgs/servers/sql/mysql/jdbc/builder.sh @@ -0,0 +1,9 @@ +source $stdenv/setup + +set -e + +tar zxvf $src +cd mysql-connector-java-* + +ensureDir $out/share/java +cp mysql-connector-java-*-bin.jar $out/share/java/mysql-connector-java.jar diff --git a/pkgs/servers/sql/mysql/jdbc/default.nix b/pkgs/servers/sql/mysql/jdbc/default.nix new file mode 100644 index 000000000000..0cbb13687176 --- /dev/null +++ b/pkgs/servers/sql/mysql/jdbc/default.nix @@ -0,0 +1,13 @@ +{stdenv, fetchurl, ant}: + +stdenv.mkDerivation { + name = "mysql-connector-java-3.1.12"; + builder = ./builder.sh; + + src = fetchurl { + url = http://mysql.proserve.nl/Downloads/Connector-J/mysql-connector-java-3.1.12.tar.gz; + md5 = "c8c15443dfa9541545aad02d744a077b"; + }; + + buildInputs = [ant]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2a2c10777210..df1e31ea31e2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1651,6 +1651,11 @@ rec { ps = procps; /* !!! Linux only */ }; + mysql_jdbc = import ../servers/sql/mysql/jdbc { + inherit fetchurl stdenv; + ant = apacheAntBlackdown14; + }; + jetty = (import ../servers/http/jetty) { inherit fetchurl stdenv unzip; };