mysql: Use libs in place of the binary mysql
This commit is contained in:
@@ -20,10 +20,10 @@ stdenv.mkDerivation rec {
|
||||
''
|
||||
export CC="${stdenv.cc}/bin/gcc";
|
||||
export CCARGS="-I$out/include \
|
||||
-L${mysql}/lib/mysql -L${postgresql}/lib -L${sqlite}/lib";
|
||||
-L${mysql.lib}/lib/mysql -L${postgresql}/lib -L${sqlite}/lib";
|
||||
|
||||
export PGHEADER="${postgresql}/include/libpq-fe.h";
|
||||
export MSHEADER="${mysql}/include/mysql/mysql.h";
|
||||
export MSHEADER="${mysql.lib}/include/mysql/mysql.h";
|
||||
export SQHEADER="${sqlite}/include/sqlite3.h";
|
||||
'';
|
||||
|
||||
|
||||
@@ -87,13 +87,13 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
||||
};
|
||||
|
||||
mysql = {
|
||||
configureFlags = ["--with-mysql=${mysql}"];
|
||||
buildInputs = [ mysql ];
|
||||
configureFlags = ["--with-mysql=${mysql.lib}"];
|
||||
buildInputs = [ mysql.lib ];
|
||||
};
|
||||
|
||||
mysqli = {
|
||||
configureFlags = ["--with-mysqli=${mysql}/bin/mysql_config"];
|
||||
buildInputs = [ mysql];
|
||||
configureFlags = ["--with-mysqli=${mysql.lib}/bin/mysql_config"];
|
||||
buildInputs = [ mysql.lib ];
|
||||
};
|
||||
|
||||
mysqli_embedded = {
|
||||
@@ -103,8 +103,8 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
||||
};
|
||||
|
||||
pdo_mysql = {
|
||||
configureFlags = ["--with-pdo-mysql=${mysql}"];
|
||||
buildInputs = [ mysql ];
|
||||
configureFlags = ["--with-pdo-mysql=${mysql.lib}"];
|
||||
buildInputs = [ mysql.lib ];
|
||||
};
|
||||
|
||||
bcmath = {
|
||||
|
||||
@@ -90,13 +90,13 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
||||
};
|
||||
|
||||
mysql = {
|
||||
configureFlags = ["--with-mysql=${mysql}"];
|
||||
buildInputs = [ mysql ];
|
||||
configureFlags = ["--with-mysql=${mysql.lib}"];
|
||||
buildInputs = [ mysql.lib ];
|
||||
};
|
||||
|
||||
mysqli = {
|
||||
configureFlags = ["--with-mysqli=${mysql}/bin/mysql_config"];
|
||||
buildInputs = [ mysql];
|
||||
configureFlags = ["--with-mysqli=${mysql.lib}/bin/mysql_config"];
|
||||
buildInputs = [ mysql.lib ];
|
||||
};
|
||||
|
||||
mysqli_embedded = {
|
||||
@@ -106,8 +106,8 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
||||
};
|
||||
|
||||
pdo_mysql = {
|
||||
configureFlags = ["--with-pdo-mysql=${mysql}"];
|
||||
buildInputs = [ mysql ];
|
||||
configureFlags = ["--with-pdo-mysql=${mysql.lib}"];
|
||||
buildInputs = [ mysql.lib ];
|
||||
};
|
||||
|
||||
bcmath = {
|
||||
|
||||
@@ -90,13 +90,13 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
||||
};
|
||||
|
||||
mysql = {
|
||||
configureFlags = ["--with-mysql=${mysql}"];
|
||||
buildInputs = [ mysql ];
|
||||
configureFlags = ["--with-mysql=${mysql.lib}"];
|
||||
buildInputs = [ mysql.lib ];
|
||||
};
|
||||
|
||||
mysqli = {
|
||||
configureFlags = ["--with-mysqli=${mysql}/bin/mysql_config"];
|
||||
buildInputs = [ mysql];
|
||||
configureFlags = ["--with-mysqli=${mysql.lib}/bin/mysql_config"];
|
||||
buildInputs = [ mysql.lib ];
|
||||
};
|
||||
|
||||
mysqli_embedded = {
|
||||
@@ -106,8 +106,8 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
||||
};
|
||||
|
||||
pdo_mysql = {
|
||||
configureFlags = ["--with-pdo-mysql=${mysql}"];
|
||||
buildInputs = [ mysql ];
|
||||
configureFlags = ["--with-pdo-mysql=${mysql.lib}"];
|
||||
buildInputs = [ mysql.lib ];
|
||||
};
|
||||
|
||||
bcmath = {
|
||||
|
||||
@@ -57,7 +57,7 @@ in
|
||||
};
|
||||
|
||||
mysql2 = attrs: {
|
||||
buildInputs = [ mysql zlib openssl ];
|
||||
buildInputs = [ mysql.lib zlib openssl ];
|
||||
};
|
||||
|
||||
ncursesw = attrs: {
|
||||
|
||||
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0m680h8cc4428xin4p733azysamzgzcmv4psjvraykrsaz6ymlj3";
|
||||
};
|
||||
|
||||
buildInputs = [ libdbi mysql sqlite postgresql ];
|
||||
buildInputs = [ libdbi mysql.lib sqlite postgresql ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/SQLITE3_LIBS/ s/-lsqlite/-lsqlite3/' configure;
|
||||
@@ -26,8 +26,8 @@ stdenv.mkDerivation rec {
|
||||
"--with-dbi-libdir=${libdbi}/lib"
|
||||
] ++ optionals (mysql != null) [
|
||||
"--with-mysql"
|
||||
"--with-mysql-incdir=${mysql}/include/mysql"
|
||||
"--with-mysql-libdir=${mysql}/lib/mysql"
|
||||
"--with-mysql-incdir=${mysql.lib}/include/mysql"
|
||||
"--with-mysql-libdir=${mysql.lib}/lib/mysql"
|
||||
] ++ optionals (postgresql != null) [
|
||||
"--with-pgsql"
|
||||
"--with-pgsql_incdir=${postgresql}/include"
|
||||
|
||||
@@ -47,7 +47,7 @@ stdenv.mkDerivation {
|
||||
-I${randrproto}/include" else "-no-xrandr"}
|
||||
${if xineramaSupport then "-xinerama -L${libXinerama}/lib -I${libXinerama}/include" else "-no-xinerama"}
|
||||
${if cursorSupport then "-L${libXcursor}/lib -I${libXcursor}/include" else ""}
|
||||
${if mysqlSupport then "-qt-sql-mysql -L${mysql}/lib/mysql -I${mysql}/include/mysql" else ""}
|
||||
${if mysqlSupport then "-qt-sql-mysql -L${mysql.lib}/lib/mysql -I${mysql.lib}/include/mysql" else ""}
|
||||
${if xftSupport then "-xft
|
||||
-L${libXft}/lib -I${libXft}/include
|
||||
-L${libXft.freetype}/lib -I${libXft.freetype}/include
|
||||
|
||||
@@ -121,7 +121,7 @@ stdenv.mkDerivation rec {
|
||||
# The following libraries are only used in plugins
|
||||
buildInputs =
|
||||
[ cups # Qt dlopen's libcups instead of linking to it
|
||||
mysql postgresql sqlite libjpeg libmng libtiff icu ]
|
||||
mysql.lib postgresql sqlite libjpeg libmng libtiff icu ]
|
||||
++ optionals gtkStyle [ gtk gdk_pixbuf ];
|
||||
|
||||
nativeBuildInputs = [ perl pkgconfig which ];
|
||||
|
||||
@@ -153,7 +153,7 @@ stdenv.mkDerivation rec {
|
||||
# doesn't remain a runtime-dep if not used
|
||||
++ optionals mesaSupported [ mesa mesa_glu ]
|
||||
++ optional (cups != null) cups
|
||||
++ optional (mysql != null) mysql
|
||||
++ optional (mysql != null) mysql.lib
|
||||
++ optional (postgresql != null) postgresql;
|
||||
|
||||
buildInputs = [ gdb bison flex gperf ruby ];
|
||||
|
||||
@@ -64,8 +64,8 @@ args : with args;
|
||||
md5 = "a484f590464fb823a8f821b2f1fd7fef";
|
||||
};
|
||||
configureFlags = "--disable-gui"
|
||||
+ " --with-mysql-path=${mysql} --with-unixODBC=${unixODBC}";
|
||||
buildInputs = [libtool zlib];
|
||||
+ " --with-mysql-path=${mysql.lib} --with-unixODBC=${unixODBC}";
|
||||
buildInputs = [ libtool zlib ];
|
||||
inherit mysql unixODBC;
|
||||
};
|
||||
ini =
|
||||
|
||||
@@ -23,14 +23,14 @@ stdenv.mkDerivation {
|
||||
"--libdir=$out/lib/ocaml/${ocaml_version}/site-lib/mysql"
|
||||
];
|
||||
|
||||
buildInputs = [ocaml findlib mysql];
|
||||
buildInputs = [ocaml findlib mysql.lib ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
propagatedbuildInputs = [mysql];
|
||||
propagatedbuildInputs = [ mysql.lib ];
|
||||
|
||||
preConfigure = ''
|
||||
export LDFLAGS="-L${mysql}/lib/mysql"
|
||||
export LDFLAGS="-L${mysql.lib}/lib/mysql"
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
|
||||
@@ -2,11 +2,14 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "sysbench-0.4.12";
|
||||
buildInputs = [ autoreconfHook mysql libxslt zlib ];
|
||||
|
||||
buildInputs = [ autoreconfHook mysql.lib libxslt zlib ];
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/sysbench/sysbench-0.4.12.tar.gz;
|
||||
sha256 = "17pa4cw7wxvlb4mba943lfs3b3jdi64mlnaf4n8jq09y35j79yl3";
|
||||
};
|
||||
|
||||
preAutoreconf = ''
|
||||
touch NEWS AUTHORS
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user