2015-04-01 23:31:51 +00:00
|
|
|
{ stdenv, fetchurl, readline, mysql, postgresql, sqlite }:
|
2010-02-09 09:05:14 +00:00
|
|
|
|
2016-08-01 15:46:30 +00:00
|
|
|
let
|
|
|
|
inherit (stdenv.lib) getDev getLib;
|
|
|
|
in
|
2010-02-09 09:05:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-04-01 23:31:51 +00:00
|
|
|
name = "opendbx-1.4.6";
|
|
|
|
|
2010-02-09 09:05:14 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://linuxnetworks.de/opendbx/download/${name}.tar.gz";
|
2015-04-01 23:31:51 +00:00
|
|
|
sha256 = "0z29h6zx5f3gghkh1a0060w6wr572ci1rl2a3480znf728wa0ii2";
|
2010-02-09 09:05:14 +00:00
|
|
|
};
|
|
|
|
|
2010-02-09 11:46:27 +00:00
|
|
|
preConfigure = ''
|
2017-12-27 16:00:39 +00:00
|
|
|
export CPPFLAGS="-I${mysql.connector-c}/include/mysql"
|
|
|
|
export LDFLAGS="-L${mysql.connector-c}/lib/mysql -L${postgresql}/lib"
|
2010-02-09 11:46:27 +00:00
|
|
|
configureFlagsArray=(--with-backends="mysql pgsql sqlite3")
|
2010-02-09 09:05:14 +00:00
|
|
|
'';
|
|
|
|
|
2017-12-25 15:57:13 +00:00
|
|
|
buildInputs = [ readline mysql.connector-c postgresql sqlite ];
|
2010-02-09 09:05:14 +00:00
|
|
|
}
|