1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/opendbx/default.nix
William A. Kennington III 71a2a59f46 opendbx: 1.4.4 -> 1.4.6
2015-04-01 16:31:51 -07:00

19 lines
524 B
Nix

{ stdenv, fetchurl, readline, mysql, postgresql, sqlite }:
stdenv.mkDerivation rec {
name = "opendbx-1.4.6";
src = fetchurl {
url = "http://linuxnetworks.de/opendbx/download/${name}.tar.gz";
sha256 = "0z29h6zx5f3gghkh1a0060w6wr572ci1rl2a3480znf728wa0ii2";
};
preConfigure = ''
export CPPFLAGS="-I${mysql.lib}/include/mysql"
export LDFLAGS="-L${mysql.lib}/lib/mysql"
configureFlagsArray=(--with-backends="mysql pgsql sqlite3")
'';
buildInputs = [ readline mysql.lib postgresql sqlite ];
}