1 { lib, stdenv, fetchurl, readline, libmysqlclient, postgresql, sqlite }:
3 let inherit (lib) getDev; in
5 stdenv.mkDerivation rec {
10 url = "https://linuxnetworks.de/opendbx/download/opendbx-${version}.tar.gz";
11 sha256 = "0z29h6zx5f3gghkh1a0060w6wr572ci1rl2a3480znf728wa0ii2";
15 export CPPFLAGS="-I${getDev libmysqlclient}/include/mysql"
16 export LDFLAGS="-L${libmysqlclient}/lib/mysql -L${postgresql}/lib"
17 configureFlagsArray=(--with-backends="mysql pgsql sqlite3")
20 buildInputs = [ readline libmysqlclient postgresql sqlite ];
22 env.NIX_CFLAGS_COMPILE = toString [
28 broken = stdenv.isDarwin;
29 description = "Extremely lightweight but extensible database access library written in C";
30 license = licenses.lgpl21;
31 platforms = platforms.all;