mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
opendbx: set libmysqlclient include path
This commit is contained in:
parent
951ec9287a
commit
9bbe7a06fd
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue