3
0
Fork 0
forked from mirrors/nixpkgs

postfix: libmysql -> mysql.connector-c

This commit is contained in:
Robin Gloster 2017-12-25 17:47:47 +01:00
parent c146b7bfaa
commit 087a08617b

View file

@ -1,7 +1,7 @@
{ stdenv, lib, fetchurl, makeWrapper, gnused, db, openssl, cyrus_sasl, libnsl
, coreutils, findutils, gnugrep, gawk, icu, pcre
, withPgSQL ? false, postgresql
, withMySQL ? false, libmysql
, withMySQL ? false, mysql
, withSQLite ? false, sqlite
, withLDAP ? false, openldap
}:
@ -11,7 +11,7 @@ let
"-DUSE_TLS" "-DUSE_SASL_AUTH" "-DUSE_CYRUS_SASL" "-I${cyrus_sasl.dev}/include/sasl"
"-DHAS_DB_BYPASS_MAKEDEFS_CHECK"
] ++ lib.optional withPgSQL "-DHAS_PGSQL"
++ lib.optionals withMySQL [ "-DHAS_MYSQL" "-I${lib.getDev libmysql}/include/mysql" ]
++ lib.optionals withMySQL [ "-DHAS_MYSQL" "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ]
++ lib.optional withSQLite "-DHAS_SQLITE"
++ lib.optional withLDAP "-DHAS_LDAP");
auxlibs = lib.concatStringsSep " " ([
@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ db openssl cyrus_sasl icu libnsl pcre ]
++ lib.optional withPgSQL postgresql
++ lib.optional withMySQL libmysql
++ lib.optional withMySQL mysql.connector-c
++ lib.optional withSQLite sqlite
++ lib.optional withLDAP openldap;