diff --git a/pkgs/development/libraries/opendbx/default.nix b/pkgs/development/libraries/opendbx/default.nix index 16ec6a5c1103..954e6cc6b663 100644 --- a/pkgs/development/libraries/opendbx/default.nix +++ b/pkgs/development/libraries/opendbx/default.nix @@ -1,5 +1,7 @@ { stdenv, fetchurl, readline, libmysqlclient, postgresql, sqlite }: +let inherit (stdenv.lib) getDev; in + stdenv.mkDerivation rec { name = "opendbx-1.4.6"; @@ -9,7 +11,7 @@ stdenv.mkDerivation rec { }; preConfigure = '' - export CPPFLAGS="-I${libmysqlclient}/include/mysql" + export CPPFLAGS="-I${getDev libmysqlclient}/include/mysql" export LDFLAGS="-L${libmysqlclient}/lib/mysql -L${postgresql}/lib" configureFlagsArray=(--with-backends="mysql pgsql sqlite3") '';