diff --git a/pkgs/servers/http/tomcat/jdbc/mysql/builder.sh b/pkgs/servers/http/tomcat/jdbc/mysql/builder.sh deleted file mode 100644 index 14829c5e85d8..000000000000 --- a/pkgs/servers/http/tomcat/jdbc/mysql/builder.sh +++ /dev/null @@ -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 diff --git a/pkgs/servers/http/tomcat/jdbc/mysql/default.nix b/pkgs/servers/http/tomcat/jdbc/mysql/default.nix index 7585cabccd14..9e6f346a0ec4 100644 --- a/pkgs/servers/http/tomcat/jdbc/mysql/default.nix +++ b/pkgs/servers/http/tomcat/jdbc/mysql/default.nix @@ -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; };