summary refs log tree commit diff
path: root/pkgs/development/libraries/libdbi-drivers
diff options
context:
space:
mode:
authorIzorkin <Izorkin@gmail.com>2017-12-28 11:54:41 +0300
committerRobin Gloster <mail@glob.in>2017-12-29 02:18:35 +0100
commit1f4c02fc9ee89995fa8fa87c99f840514234db9a (patch)
treed98e6141fd7410152db459d49892e12d5307834a /pkgs/development/libraries/libdbi-drivers
parente2254dff8ba74edadd7c63c656c83e411dc3db33 (diff)
downloadnixpkgs-1f4c02fc9ee89995fa8fa87c99f840514234db9a.tar
nixpkgs-1f4c02fc9ee89995fa8fa87c99f840514234db9a.tar.gz
nixpkgs-1f4c02fc9ee89995fa8fa87c99f840514234db9a.tar.bz2
nixpkgs-1f4c02fc9ee89995fa8fa87c99f840514234db9a.tar.lz
nixpkgs-1f4c02fc9ee89995fa8fa87c99f840514234db9a.tar.xz
nixpkgs-1f4c02fc9ee89995fa8fa87c99f840514234db9a.tar.zst
nixpkgs-1f4c02fc9ee89995fa8fa87c99f840514234db9a.zip
libdbiDrivers: fix config
Diffstat (limited to 'pkgs/development/libraries/libdbi-drivers')
-rw-r--r--pkgs/development/libraries/libdbi-drivers/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/libraries/libdbi-drivers/default.nix b/pkgs/development/libraries/libdbi-drivers/default.nix
index 70095446775..2a03efd632f 100644
--- a/pkgs/development/libraries/libdbi-drivers/default.nix
+++ b/pkgs/development/libraries/libdbi-drivers/default.nix
@@ -1,5 +1,7 @@
 { stdenv, fetchurl, libdbi
-, mysql ? null, sqlite ? null, postgresql ? null
+, mysql ? null
+, sqlite ? null
+, postgresql ? null
 }:
 
 with stdenv.lib;
@@ -26,14 +28,16 @@ stdenv.mkDerivation rec {
     "--with-dbi-libdir=${libdbi}/lib"
   ] ++ optionals (mysql != null) [
     "--with-mysql"
-  ] ++ optionals (postgresql != null) [
-    "--with-pgsql"
-    "--with-pgsql_incdir=${postgresql}/include"
-    "--with-pgsql_libdir=${postgresql.lib}/lib"
+    "--with-mysql-incdir=${mysql.connector-c}/include/mysql"
+    "--with-mysql-libdir=${mysql.connector-c}/lib/mysql"
   ] ++ optionals (sqlite != null) [
     "--with-sqlite3"
     "--with-sqlite3-incdir=${sqlite.dev}/include/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}" ];