Merge pull request #146254 from Stunkymonkey/tomcat-mysql-jdbc-builder

This commit is contained in:
Sandro 2021-11-17 13:39:28 +01:00 committed by GitHub
commit 20091ed205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View File

@ -1,4 +0,0 @@
source $stdenv/setup
mkdir -p $out/lib
ln -s $mysql_jdbc/share/java/mysql-connector-java.jar $out/lib/mysql-connector-java.jar

View File

@ -2,12 +2,19 @@
stdenv.mkDerivation {
pname = "tomcat-mysql-jdbc";
builder = ./builder.sh;
buildInputs = [ mysql_jdbc ];
inherit mysql_jdbc;
version = mysql_jdbc.version;
dontUnpack = true;
installPhase = ''
runHook preInstall
mkdir -p $out/lib
ln -s $mysql_jdbc/share/java/mysql-connector-java.jar $out/lib/mysql-connector-java.jar
runHook postInstall
'';
meta = {
platforms = lib.platforms.unix;
};