opendbx: set libmysqlclient include path

This commit is contained in:
Thomas Tuegel 2020-09-12 06:02:54 -05:00
parent 951ec9287a
commit 9bbe7a06fd
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59

View file

@ -1,5 +1,7 @@
{ stdenv, fetchurl, readline, libmysqlclient, postgresql, sqlite }: { stdenv, fetchurl, readline, libmysqlclient, postgresql, sqlite }:
let inherit (stdenv.lib) getDev; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "opendbx-1.4.6"; name = "opendbx-1.4.6";
@ -9,7 +11,7 @@ stdenv.mkDerivation rec {
}; };
preConfigure = '' preConfigure = ''
export CPPFLAGS="-I${libmysqlclient}/include/mysql" export CPPFLAGS="-I${getDev libmysqlclient}/include/mysql"
export LDFLAGS="-L${libmysqlclient}/lib/mysql -L${postgresql}/lib" export LDFLAGS="-L${libmysqlclient}/lib/mysql -L${postgresql}/lib"
configureFlagsArray=(--with-backends="mysql pgsql sqlite3") configureFlagsArray=(--with-backends="mysql pgsql sqlite3")
''; '';