2015-04-02 02:31:51 +03:00
|
|
|
{ stdenv, fetchurl, readline, mysql, postgresql, sqlite }:
|
2010-02-09 12:05:14 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-02 02:31:51 +03:00
|
|
|
name = "opendbx-1.4.6";
|
|
|
|
|
2010-02-09 12:05:14 +03:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://linuxnetworks.de/opendbx/download/${name}.tar.gz";
|
2015-04-02 02:31:51 +03:00
|
|
|
sha256 = "0z29h6zx5f3gghkh1a0060w6wr572ci1rl2a3480znf728wa0ii2";
|
2010-02-09 12:05:14 +03:00
|
|
|
};
|
|
|
|
|
2010-02-09 14:46:27 +03:00
|
|
|
preConfigure = ''
|
2015-04-02 02:31:51 +03:00
|
|
|
export CPPFLAGS="-I${mysql.lib}/include/mysql"
|
|
|
|
export LDFLAGS="-L${mysql.lib}/lib/mysql"
|
2010-02-09 14:46:27 +03:00
|
|
|
configureFlagsArray=(--with-backends="mysql pgsql sqlite3")
|
2010-02-09 12:05:14 +03:00
|
|
|
'';
|
|
|
|
|
2015-04-02 02:31:51 +03:00
|
|
|
buildInputs = [ readline mysql.lib postgresql sqlite ];
|
2010-02-09 12:05:14 +03:00
|
|
|
}
|