From 3f92e4d2c88e5ebe49de05c200fafb46b8e6a6bc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 6 Jul 2010 14:54:22 +0000 Subject: [PATCH] * Added Blueman (a Bluetooth application). * Added obex-data-server and python-notify, needed by Blueman. svn path=/nixpkgs/trunk/; revision=22497 --- pkgs/tools/bluetooth/blueman/default.nix | 38 +++++++++++++++++++ .../bluetooth/obex-data-server/default.nix | 16 ++++++++ pkgs/top-level/all-packages.nix | 13 +++++++ pkgs/top-level/python-packages.nix | 16 ++++++++ 4 files changed, 83 insertions(+) create mode 100644 pkgs/tools/bluetooth/blueman/default.nix create mode 100644 pkgs/tools/bluetooth/obex-data-server/default.nix diff --git a/pkgs/tools/bluetooth/blueman/default.nix b/pkgs/tools/bluetooth/blueman/default.nix new file mode 100644 index 000000000000..47de82db1580 --- /dev/null +++ b/pkgs/tools/bluetooth/blueman/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, pkgconfig, intltool, python, pyrex, pygobject, pygtk +, notify, pythonDBus, bluez, glib, gtk, libstartup_notification +, makeWrapper, xdg_utils +}: + +stdenv.mkDerivation rec { + name = "blueman-1.21"; + + src = fetchurl { + url = "http://download.tuxfamily.org/blueman/${name}.tar.gz"; + sha256 = "1bz31w0cqcl77r7vfjwm9c4gmk4hvq3nqn1pjnd5qndia2mhs846"; + }; + + configureFlags = "--disable-polkit"; + + buildInputs = + [ pkgconfig intltool python pyrex pygobject pygtk notify pythonDBus + bluez glib gtk libstartup_notification makeWrapper + ]; + + # !!! Ugly. + PYTHONPATH = "${pygobject}/lib/${python.libPrefix}/site-packages/gtk-2.0:${pygtk}/lib/${python.libPrefix}/site-packages/gtk-2.0:${notify}/lib/${python.libPrefix}/site-packages/gtk-2.0"; + + postInstall = + '' + # Create wrappers that set the environment correctly. + for i in $out/bin/* $out/libexec/*; do + wrapProgram $i \ + --set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH" \ + --prefix PATH : ${xdg_utils}/bin + done + ''; # */ + + meta = { + homepage = http://blueman-project.org/; + description = "GTK+-based Bluetooth Manager"; + }; +} diff --git a/pkgs/tools/bluetooth/obex-data-server/default.nix b/pkgs/tools/bluetooth/obex-data-server/default.nix new file mode 100644 index 000000000000..c01794b26ba6 --- /dev/null +++ b/pkgs/tools/bluetooth/obex-data-server/default.nix @@ -0,0 +1,16 @@ +{ stdenv, fetchurl, pkgconfig, libusb, glib, dbus_glib, bluez, openobex }: + +stdenv.mkDerivation rec { + name = "obex-data-server-0.4.5"; + + src = fetchurl { + url = "http://tadas.dailyda.com/software/${name}.tar.gz"; + sha256 = "0qy7mrwr3xfplcxlrq97hiiyda7r9jn24015y9azahi7q5xjfhg7"; + }; + + buildInputs = [ pkgconfig libusb glib dbus_glib bluez openobex ]; + + meta = { + homepage = http://wiki.muiline.com/obex-data-server; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 508b059dc545..68038c98c450 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -477,6 +477,14 @@ let inherit fetchurl stdenv python wxPython26; }; + blueman = import ../tools/bluetooth/blueman { + inherit fetchurl stdenv pkgconfig intltool python pyrex + pygobject pygtk pythonDBus bluez libstartup_notification + makeWrapper xdg_utils; + inherit (pythonPackages) notify; + inherit (gtkLibs) glib gtk; + }; + bmrsa = builderDefsPackage (import ../tools/security/bmrsa/11.nix) { inherit unzip; }; @@ -1286,6 +1294,11 @@ let inherit fetchurl stdenv libevent; }; + obex_data_server = import ../tools/bluetooth/obex-data-server { + inherit fetchurl stdenv pkgconfig libusb dbus_glib bluez openobex; + inherit (gtkLibs) glib; + }; + obexd = import ../tools/bluetooth/obexd { inherit fetchurl stdenv pkgconfig dbus openobex bluez glib libical; }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 76633b992be3..9257707fb16d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -395,6 +395,22 @@ rec { }; }); + notify = pkgs.stdenv.mkDerivation (rec { + name = "python-notify-0.1.1"; + + src = fetchurl { + url = http://www.galago-project.org/files/releases/source/notify-python/notify-python-0.1.1.tar.bz2; + sha256 = "1kh4spwgqxm534qlzzf2ijchckvs0pwjxl1irhicjmlg7mybnfvx"; + }; + + buildInputs = [ python pkgs.pkgconfig pkgs.libnotify pkgs.pygobject pkgs.pygtk pkgs.gtkLibs.glib pkgs.gtkLibs.gtk pkgs.dbus_glib ]; + + meta = { + description = "Python bindings for libnotify"; + homepage = http://www.galago-project.org/; + }; + }); + numpy = buildPythonPackage ( rec { name = "numpy-1.4.1";