libdbiDrivers: fix config
This commit is contained in:
parent
e2254dff8b
commit
1f4c02fc9e
@ -1,5 +1,7 @@
|
|||||||
{ stdenv, fetchurl, libdbi
|
{ stdenv, fetchurl, libdbi
|
||||||
, mysql ? null, sqlite ? null, postgresql ? null
|
, mysql ? null
|
||||||
|
, sqlite ? null
|
||||||
|
, postgresql ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -26,14 +28,16 @@ stdenv.mkDerivation rec {
|
|||||||
"--with-dbi-libdir=${libdbi}/lib"
|
"--with-dbi-libdir=${libdbi}/lib"
|
||||||
] ++ optionals (mysql != null) [
|
] ++ optionals (mysql != null) [
|
||||||
"--with-mysql"
|
"--with-mysql"
|
||||||
] ++ optionals (postgresql != null) [
|
"--with-mysql-incdir=${mysql.connector-c}/include/mysql"
|
||||||
"--with-pgsql"
|
"--with-mysql-libdir=${mysql.connector-c}/lib/mysql"
|
||||||
"--with-pgsql_incdir=${postgresql}/include"
|
|
||||||
"--with-pgsql_libdir=${postgresql.lib}/lib"
|
|
||||||
] ++ optionals (sqlite != null) [
|
] ++ optionals (sqlite != null) [
|
||||||
"--with-sqlite3"
|
"--with-sqlite3"
|
||||||
"--with-sqlite3-incdir=${sqlite.dev}/include/sqlite"
|
"--with-sqlite3-incdir=${sqlite.dev}/include/sqlite"
|
||||||
"--with-sqlite3-libdir=${sqlite.out}/lib/sqlite"
|
"--with-sqlite3-libdir=${sqlite.out}/lib/sqlite"
|
||||||
|
] ++ optionals (postgresql != null) [
|
||||||
|
"--with-pgsql"
|
||||||
|
"--with-pgsql_incdir=${postgresql}/include"
|
||||||
|
"--with-pgsql_libdir=${postgresql.lib}/lib"
|
||||||
];
|
];
|
||||||
|
|
||||||
installFlags = [ "DESTDIR=\${out}" ];
|
installFlags = [ "DESTDIR=\${out}" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user