dspam: libmysql -> mysql 5.7

This commit is contained in:
Izorkin 2017-12-22 19:33:47 +03:00 committed by Robin Gloster
parent c9db834ee7
commit c146b7bfaa

View file

@ -1,7 +1,7 @@
{ stdenv, lib, fetchurl, makeWrapper { stdenv, lib, fetchurl, makeWrapper
, gawk, gnused, gnugrep, coreutils, which , gawk, gnused, gnugrep, coreutils, which
, perl, NetSMTP , perl, NetSMTP
, withMySQL ? false, zlib, libmysql , withMySQL ? false, zlib, mysql57
, withPgSQL ? false, postgresql , withPgSQL ? false, postgresql
, withSQLite ? false, sqlite , withSQLite ? false, sqlite
, withDB ? false, db , withDB ? false, db
@ -26,7 +26,7 @@ in stdenv.mkDerivation rec {
}; };
buildInputs = [ perl ] buildInputs = [ perl ]
++ lib.optionals withMySQL [ zlib libmysql ] ++ lib.optionals withMySQL [ zlib mysql57.connector-c ]
++ lib.optional withPgSQL postgresql ++ lib.optional withPgSQL postgresql
++ lib.optional withSQLite sqlite ++ lib.optional withSQLite sqlite
++ lib.optional withDB db; ++ lib.optional withDB db;
@ -49,7 +49,7 @@ in stdenv.mkDerivation rec {
"--enable-preferences-extension" "--enable-preferences-extension"
"--enable-long-usernames" "--enable-long-usernames"
"--enable-external-lookup" "--enable-external-lookup"
] ++ lib.optional withMySQL "--with-mysql-includes=${lib.getDev libmysql}/include/mysql" ] ++ lib.optional withMySQL "--with-mysql-includes=${mysql57.connector-c}/include/mysql"
++ lib.optional withPgSQL "--with-pgsql-libraries=${postgresql.lib}/lib"; ++ lib.optional withPgSQL "--with-pgsql-libraries=${postgresql.lib}/lib";
# Lots of things are hardwired to paths like sysconfdir. That's why we install with both "prefix" and "DESTDIR" # Lots of things are hardwired to paths like sysconfdir. That's why we install with both "prefix" and "DESTDIR"