tomcat-mysql-jdbc: remove build.sh

This commit is contained in:
Felix Buehler 2021-11-16 16:24:18 +01:00
parent 57c90b8956
commit 04a4175ff7
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;
};