pmacct: set path to mysql_config

This commit is contained in:
Thomas Tuegel 2020-09-12 06:09:52 -05:00
parent 9bbe7a06fd
commit 7ac43898fe
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -19,7 +19,7 @@ assert withSQLite -> sqlite != null;
assert withPgSQL -> postgresql != null;
assert withMysql -> libmysqlclient != null;
let inherit (stdenv.lib) optional; in
let inherit (stdenv.lib) getDev optional optionalString; in
stdenv.mkDerivation rec {
version = "1.7.5";
@ -40,6 +40,9 @@ stdenv.mkDerivation rec {
++ optional withPgSQL postgresql
++ optional withMysql [ libmysqlclient zlib ];
MYSQL_CONFIG =
optionalString withMysql "${getDev libmysqlclient}/bin/mysql_config";
configureFlags = [
"--with-pcap-includes=${libpcap}/include"
] ++ optional withJansson "--enable-jansson"