diff --git a/pkgs/servers/http/jboss/jdbc/mysql/builder.sh b/pkgs/servers/http/jboss/jdbc/mysql/builder.sh new file mode 100644 index 000000000000..06d60fc5e126 --- /dev/null +++ b/pkgs/servers/http/jboss/jdbc/mysql/builder.sh @@ -0,0 +1,5 @@ +buildInputs="$mysql_jdbc" +source $stdenv/setup + +ensureDir $out/server/default/lib +ln -s $mysql_jdbc/share/java/mysql-connector-java.jar $out/server/default/lib/mysql-connector-java.jar diff --git a/pkgs/servers/http/jboss/jdbc/mysql/default.nix b/pkgs/servers/http/jboss/jdbc/mysql/default.nix new file mode 100644 index 000000000000..8544ce050afd --- /dev/null +++ b/pkgs/servers/http/jboss/jdbc/mysql/default.nix @@ -0,0 +1,9 @@ +{ stdenv, jboss, mysql_jdbc }: + +stdenv.mkDerivation { + name = "jboss-mysql-jdbc"; + + builder = ./builder.sh; + + inherit mysql_jdbc; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 489698ddb566..c8e18e389bd8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3162,6 +3162,10 @@ rec { inherit fetchurl stdenv jdk5 jdk; }; + jboss_mysql_jdbc = import ../servers/http/jboss/jdbc/mysql { + inherit stdenv jboss mysql_jdbc; + }; + jetty = import ../servers/http/jetty { inherit fetchurl stdenv unzip; };