@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, file, openssl, mlton
1+{ stdenv, lib, fetchurl, file, openssl, mlton
22, mysql, postgresql, sqlite
33}:
44
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111 sha256 = "08km96hli5yp754nsxxjzih2la0m89j5wc2cq12rkas43nqqgr65";
1212 };
1313
14− buildInputs = [ openssl mlton mysql postgresql sqlite ];
14+ buildInputs = [ openssl mlton mysql.client postgresql sqlite ];
1515
1616 prePatch = ''
1717 sed -e 's@/usr/bin/file@${file}/bin/file@g' -i configure
@@ -21,11 +21,11 @@ stdenv.mkDerivation rec {
2121
2222 preConfigure = ''
2323 export PGHEADER="${postgresql}/include/libpq-fe.h";
24− export MSHEADER="${mysql.lib}/include/mysql/mysql.h";
24+ export MSHEADER="${lib.getDev mysql.client}/include/mysql/mysql.h";
2525 export SQHEADER="${sqlite.dev}/include/sqlite3.h";
2626
2727 export CCARGS="-I$out/include \
28− -L${mysql.lib}/lib/mysql \
28+ -L${lib.getLib mysql.client}/lib/mysql \
2929 -L${postgresql.lib}/lib \
3030 -L${sqlite.out}/lib";
3131 '';