summary refs log tree commit diff
path: root/pkgs/tools/bluetooth
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-07-06 14:54:22 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-07-06 14:54:22 +0000
commit3f92e4d2c88e5ebe49de05c200fafb46b8e6a6bc (patch)
tree5eecb2a3eedd812a1dffd1c952c9559b723e58a8 /pkgs/tools/bluetooth
parent8213706eb9a36fa16ffffb1cec4d426dc183375c (diff)
downloadnixlib-3f92e4d2c88e5ebe49de05c200fafb46b8e6a6bc.tar
nixlib-3f92e4d2c88e5ebe49de05c200fafb46b8e6a6bc.tar.gz
nixlib-3f92e4d2c88e5ebe49de05c200fafb46b8e6a6bc.tar.bz2
nixlib-3f92e4d2c88e5ebe49de05c200fafb46b8e6a6bc.tar.lz
nixlib-3f92e4d2c88e5ebe49de05c200fafb46b8e6a6bc.tar.xz
nixlib-3f92e4d2c88e5ebe49de05c200fafb46b8e6a6bc.tar.zst
nixlib-3f92e4d2c88e5ebe49de05c200fafb46b8e6a6bc.zip
* Added Blueman (a Bluetooth application).
* Added obex-data-server and python-notify, needed by Blueman.

svn path=/nixpkgs/trunk/; revision=22497
Diffstat (limited to 'pkgs/tools/bluetooth')
-rw-r--r--pkgs/tools/bluetooth/blueman/default.nix38
-rw-r--r--pkgs/tools/bluetooth/obex-data-server/default.nix16
2 files changed, 54 insertions, 0 deletions
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;
+  };
+}