diff options
author | Sander van der Burg <s.vanderburg@tudelft.nl> | 2008-08-04 12:04:24 +0000 |
---|---|---|
committer | Sander van der Burg <s.vanderburg@tudelft.nl> | 2008-08-04 12:04:24 +0000 |
commit | 6dd7896b4efe6fb9e93838b5f678d791fd1bbdde (patch) | |
tree | e983890b0b13762e5abf2fb22ed1143883cd8f1c /pkgs/servers | |
parent | b23b849ba3d76e56869324b2881467cf7c72120c (diff) |
Added shared JDBC driver support for tomcat
svn path=/nixpkgs/trunk/; revision=12476
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/http/tomcat/jdbc/mysql/builder.sh | 4 | ||||
-rw-r--r-- | pkgs/servers/http/tomcat/jdbc/mysql/default.nix | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/servers/http/tomcat/jdbc/mysql/builder.sh b/pkgs/servers/http/tomcat/jdbc/mysql/builder.sh new file mode 100644 index 0000000000000..b02e0f49dfdef --- /dev/null +++ b/pkgs/servers/http/tomcat/jdbc/mysql/builder.sh @@ -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 diff --git a/pkgs/servers/http/tomcat/jdbc/mysql/default.nix b/pkgs/servers/http/tomcat/jdbc/mysql/default.nix new file mode 100644 index 0000000000000..975d5234aee9b --- /dev/null +++ b/pkgs/servers/http/tomcat/jdbc/mysql/default.nix @@ -0,0 +1,9 @@ +{ stdenv, tomcat6, mysql_jdbc }: + +stdenv.mkDerivation { + name = "tomcat-mysql-jdbc"; + builder = ./builder.sh; + buildInputs = [ mysql_jdbc ]; + + inherit mysql_jdbc; +} |