forked from mirrors/nixpkgs
Added shared JDBC driver support for tomcat
svn path=/nixpkgs/trunk/; revision=12476
This commit is contained in:
parent
b23b849ba3
commit
6dd7896b4e
4
pkgs/servers/http/tomcat/jdbc/mysql/builder.sh
Normal file
4
pkgs/servers/http/tomcat/jdbc/mysql/builder.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
source $stdenv/setup
|
||||||
|
|
||||||
|
ensureDir $out/shared/lib
|
||||||
|
ln -s $mysql_jdbc/share/java/mysql-connector-java.jar $out/shared/lib/mysql-connector-java.jar
|
9
pkgs/servers/http/tomcat/jdbc/mysql/default.nix
Normal file
9
pkgs/servers/http/tomcat/jdbc/mysql/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ stdenv, tomcat6, mysql_jdbc }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "tomcat-mysql-jdbc";
|
||||||
|
builder = ./builder.sh;
|
||||||
|
buildInputs = [ mysql_jdbc ];
|
||||||
|
|
||||||
|
inherit mysql_jdbc;
|
||||||
|
}
|
|
@ -4641,6 +4641,10 @@ let pkgs = rec {
|
||||||
inherit fetchurl stdenv jdk;
|
inherit fetchurl stdenv jdk;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tomcat_mysql_jdbc = import ../servers/http/tomcat/jdbc/mysql {
|
||||||
|
inherit stdenv tomcat6 mysql_jdbc;
|
||||||
|
};
|
||||||
|
|
||||||
axis2 = import ../servers/http/tomcat/axis2 {
|
axis2 = import ../servers/http/tomcat/axis2 {
|
||||||
inherit fetchurl stdenv jdk apacheAnt unzip;
|
inherit fetchurl stdenv jdk apacheAnt unzip;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue