* Added Blueman (a Bluetooth application).
* Added obex-data-server and python-notify, needed by Blueman. svn path=/nixpkgs/trunk/; revision=22497
This commit is contained in:
38
pkgs/tools/bluetooth/blueman/default.nix
Normal file
38
pkgs/tools/bluetooth/blueman/default.nix
Normal file
@@ -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";
|
||||
};
|
||||
}
|
||||
16
pkgs/tools/bluetooth/obex-data-server/default.nix
Normal file
16
pkgs/tools/bluetooth/obex-data-server/default.nix
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user