mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 15:23:26 +03:00
becfc4fd55
svn path=/nixpkgs/trunk/; revision=19880
18 lines
509 B
Nix
18 lines
509 B
Nix
{stdenv, fetchurl, readline, mysql, postgresql, sqlite}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "opendbx-1.4.4";
|
|
src = fetchurl {
|
|
url = "http://linuxnetworks.de/opendbx/download/${name}.tar.gz";
|
|
sha256 = "1pc70l54kkdakdw8njr2pnbcghq7fn2bnk97wzhac2adwdkjp7vs";
|
|
};
|
|
|
|
preConfigure = ''
|
|
export CPPFLAGS="-I${mysql}/include/mysql"
|
|
export LDFLAGS="-L${mysql}/lib/mysql"
|
|
configureFlagsArray=(--with-backends="mysql pgsql sqlite3")
|
|
'';
|
|
|
|
buildInputs = [readline mysql postgresql sqlite];
|
|
}
|