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