2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, readline, libmysqlclient, postgresql, sqlite }:
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
let inherit (stdenv.lib) getDev; in
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "opendbx-1.4.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://linuxnetworks.de/opendbx/download/${name}.tar.gz";
|
|
|
|
sha256 = "0z29h6zx5f3gghkh1a0060w6wr572ci1rl2a3480znf728wa0ii2";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2020-10-16 20:44:37 +00:00
|
|
|
export CPPFLAGS="-I${getDev libmysqlclient}/include/mysql"
|
2020-04-24 23:36:52 +00:00
|
|
|
export LDFLAGS="-L${libmysqlclient}/lib/mysql -L${postgresql}/lib"
|
|
|
|
configureFlagsArray=(--with-backends="mysql pgsql sqlite3")
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ readline libmysqlclient postgresql sqlite ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Extremely lightweight but extensible database access library written in C";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|