From b3dfc53d155fc52dd4098e3d3e7aa46645d748b3 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 9 Feb 2010 09:05:14 +0000 Subject: [PATCH] added opendbx 1.4.4 svn path=/nixpkgs/trunk/; revision=19872 --- pkgs/development/libraries/opendbx/default.nix | 17 +++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/libraries/opendbx/default.nix diff --git a/pkgs/development/libraries/opendbx/default.nix b/pkgs/development/libraries/opendbx/default.nix new file mode 100644 index 000000000000..90f454d87bef --- /dev/null +++ b/pkgs/development/libraries/opendbx/default.nix @@ -0,0 +1,17 @@ +{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"; + }; + + configurePhase = '' + export CPPFLAGS="-I${mysql}/include/mysql" + export LDFLAGS="-L${mysql}/lib/mysql" + ./configure --prefix=$prefix --with-backends="mysql pgsql sqlite3" --disable-dependency-tracking --disable-static + ''; + + buildInputs = [readline mysql postgresql sqlite]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 54decba6c068..2c70a9ecaf4a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1207,6 +1207,10 @@ let inherit fetchurl stdenv pkgconfig openobex bluez; }; + opendbx = import ../development/libraries/opendbx { + inherit fetchurl stdenv readline mysql postgresql sqlite; + }; + openjade = import ../tools/text/sgml/openjade { inherit fetchurl opensp perl; stdenv = overrideGCC stdenv gcc33;