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

19 lines
569 B
Nix
Raw Normal View History

2015-04-02 00:31:51 +01:00
{ stdenv, fetchurl, readline, mysql, postgresql, sqlite }:
stdenv.mkDerivation rec {
2015-04-02 00:31:51 +01:00
name = "opendbx-1.4.6";
src = fetchurl {
url = "https://linuxnetworks.de/opendbx/download/${name}.tar.gz";
2015-04-02 00:31:51 +01:00
sha256 = "0z29h6zx5f3gghkh1a0060w6wr572ci1rl2a3480znf728wa0ii2";
};
preConfigure = ''
export CPPFLAGS="-I${mysql.connector-c}/include/mysql"
export LDFLAGS="-L${mysql.connector-c}/lib/mysql -L${postgresql}/lib"
configureFlagsArray=(--with-backends="mysql pgsql sqlite3")
'';
2017-12-25 15:57:13 +00:00
buildInputs = [ readline mysql.connector-c postgresql sqlite ];
}