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 000000000000..b02e0f49dfde --- /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 000000000000..975d5234aee9 --- /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; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6e8f9d0f5201..8534f2d04887 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4641,6 +4641,10 @@ let pkgs = rec { inherit fetchurl stdenv jdk; }; + tomcat_mysql_jdbc = import ../servers/http/tomcat/jdbc/mysql { + inherit stdenv tomcat6 mysql_jdbc; + }; + axis2 = import ../servers/http/tomcat/axis2 { inherit fetchurl stdenv jdk apacheAnt unzip; };