diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-08-01 17:46:30 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-08-07 20:46:37 +0200 |
commit | 950feb70b2e43e300bd0f285eb6e3ad446ca0722 (patch) | |
tree | f245993b24df468364c224dc9f3a3b29cb2539f4 /pkgs/development/libraries/opendbx | |
parent | 9a072482e69ab90c09ce2ca464a4316fb07c4a45 (diff) |
treewide: fixup various mysql ocurrences after re-split
Diffstat (limited to 'pkgs/development/libraries/opendbx')
-rw-r--r-- | pkgs/development/libraries/opendbx/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/libraries/opendbx/default.nix b/pkgs/development/libraries/opendbx/default.nix index 03e7718a3ae46..37afa3fd50704 100644 --- a/pkgs/development/libraries/opendbx/default.nix +++ b/pkgs/development/libraries/opendbx/default.nix @@ -1,5 +1,8 @@ { stdenv, fetchurl, readline, mysql, postgresql, sqlite }: +let + inherit (stdenv.lib) getDev getLib; +in stdenv.mkDerivation rec { name = "opendbx-1.4.6"; @@ -9,10 +12,10 @@ stdenv.mkDerivation rec { }; preConfigure = '' - export CPPFLAGS="-I${mysql.lib}/include/mysql" - export LDFLAGS="-L${mysql.lib}/lib/mysql" + export CPPFLAGS="-I${getDev mysql.client}/include/mysql" + export LDFLAGS="-L${getLib mysql.client}/lib/mysql -L${getLib postgresql}/lib" configureFlagsArray=(--with-backends="mysql pgsql sqlite3") ''; - buildInputs = [ readline mysql.lib postgresql sqlite ]; + buildInputs = [ readline mysql.client postgresql sqlite ]; } |