summary refs log tree commit diff
path: root/pkgs/servers/mail/opensmtpd
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-12-27 16:15:33 +0100
committerRobin Gloster <mail@glob.in>2017-12-29 02:18:35 +0100
commit6903ea60502865fe4397d8aaacc38ff674acaeb9 (patch)
tree0d1700cd7e4aee9eb7ca9aeb79d4e9b15b9e50b8 /pkgs/servers/mail/opensmtpd
parent445e3d739041474bc17757b5acc440d1fdcb13ea (diff)
downloadnixpkgs-6903ea60502865fe4397d8aaacc38ff674acaeb9.tar
nixpkgs-6903ea60502865fe4397d8aaacc38ff674acaeb9.tar.gz
nixpkgs-6903ea60502865fe4397d8aaacc38ff674acaeb9.tar.bz2
nixpkgs-6903ea60502865fe4397d8aaacc38ff674acaeb9.tar.lz
nixpkgs-6903ea60502865fe4397d8aaacc38ff674acaeb9.tar.xz
nixpkgs-6903ea60502865fe4397d8aaacc38ff674acaeb9.tar.zst
nixpkgs-6903ea60502865fe4397d8aaacc38ff674acaeb9.zip
treewide: libmysql -> mysql.connector-c
Diffstat (limited to 'pkgs/servers/mail/opensmtpd')
-rw-r--r--pkgs/servers/mail/opensmtpd/extras.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/servers/mail/opensmtpd/extras.nix b/pkgs/servers/mail/opensmtpd/extras.nix
index 5e5170afbc7..5e87a1fb099 100644
--- a/pkgs/servers/mail/opensmtpd/extras.nix
+++ b/pkgs/servers/mail/opensmtpd/extras.nix
@@ -1,5 +1,6 @@
 { stdenv, fetchurl, openssl, libevent, libasr,
-  python2, pkgconfig, lua5, perl, mariadb, postgresql, sqlite, hiredis }:
+  python2, pkgconfig, lua5, perl, mysql, postgresql, sqlite, hiredis }:
+
 stdenv.mkDerivation rec {
   name = "opensmtpd-extras-${version}";
   version = "5.7.1";
@@ -11,7 +12,7 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ pkgconfig ];
   buildInputs = [ openssl libevent
-    libasr python2 lua5 perl mariadb.client postgresql sqlite hiredis ];
+    libasr python2 lua5 perl mysql.connector-c postgresql sqlite hiredis ];
 
   configureFlags = [
     "--sysconfdir=/etc"
@@ -54,7 +55,7 @@ stdenv.mkDerivation rec {
     "--with-perl=${perl}"
     "--with-filter-perl"
 
-  ] ++ stdenv.lib.optional (mariadb != null) [
+  ] ++ stdenv.lib.optional (mysql != null) [
     "--with-table-mysql"
 
   ] ++ stdenv.lib.optional (postgresql != null) [
@@ -67,7 +68,8 @@ stdenv.mkDerivation rec {
     "--with-table-redis"
   ];
 
-  NIX_CFLAGS_COMPILE = stdenv.lib.optional (hiredis != null) [ "-I${hiredis}/include/hiredis" ];
+  NIX_CFLAGS_COMPILE = stdenv.lib.optional (hiredis != null) "-I${hiredis}/include/hiredis" ++
+    stdenv.lib.optional (mysql != null) "-L${mysql.connector-c}/lib/mysql";
 
   meta = with stdenv.lib; {
     homepage = https://www.opensmtpd.org/;