nixpkgs/pkgs/development/libraries/opendbx/default.nix

27 lines
795 B
Nix
Raw Normal View History

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