3
0
Fork 0
forked from mirrors/nixpkgs

libdbiDrivers: libmysql -> connector-c

This commit is contained in:
Robin Gloster 2017-12-25 18:08:09 +01:00
parent 62a3561b5e
commit f3445606ac
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, libdbi
, libmysql ? null, sqlite ? null, postgresql ? null
, mysql ? null, sqlite ? null, postgresql ? null
}:
with stdenv.lib;
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "0m680h8cc4428xin4p733azysamzgzcmv4psjvraykrsaz6ymlj3";
};
buildInputs = [ libdbi libmysql sqlite postgresql ];
buildInputs = [ libdbi sqlite postgresql ] ++ optional (mysql != null) mysql.connector-c;
postPatch = ''
sed -i '/SQLITE3_LIBS/ s/-lsqlite/-lsqlite3/' configure;
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
"--enable-libdbi"
"--with-dbi-incdir=${libdbi}/include"
"--with-dbi-libdir=${libdbi}/lib"
] ++ optionals (libmysql != null) [
] ++ optionals (mysql != null) [
"--with-mysql"
] ++ optionals (postgresql != null) [
"--with-pgsql"

View file

@ -9178,12 +9178,12 @@ with pkgs;
libdbi = callPackage ../development/libraries/libdbi { };
libdbiDriversBase = callPackage ../development/libraries/libdbi-drivers {
libmysql = null;
mysql = null;
sqlite = null;
};
libdbiDrivers = libdbiDriversBase.override {
inherit sqlite libmysql;
inherit sqlite mysql;
};
libdbusmenu-glib = callPackage ../development/libraries/libdbusmenu { };