2010-07-06 16:54:22 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, python, pyrex, pygobject, pygtk
|
|
|
|
, notify, pythonDBus, bluez, glib, gtk, libstartup_notification
|
2011-05-04 16:10:17 +02:00
|
|
|
, makeWrapper, xdg_utils, obex_data_server
|
2015-05-27 21:42:15 +02:00
|
|
|
, libpulseaudio
|
2010-07-06 16:54:22 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-09-06 18:12:35 +02:00
|
|
|
name = "blueman-1.23";
|
2010-07-06 16:54:22 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.tuxfamily.org/blueman/${name}.tar.gz";
|
2014-09-06 18:12:35 +02:00
|
|
|
sha256 = "04ghlh4h5bwp9mqr5jxcmjm01595l5fq5561qxvf369fvjy63cjh";
|
2010-07-06 16:54:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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" \
|
2015-05-27 21:42:15 +02:00
|
|
|
--set LD_LIBRARY_PATH "${libpulseaudio}/lib:" \
|
2010-07-06 16:54:22 +02:00
|
|
|
--prefix PATH : ${xdg_utils}/bin
|
|
|
|
done
|
2011-05-04 16:10:17 +02:00
|
|
|
|
|
|
|
mkdir -p $out/nix-support
|
|
|
|
echo ${obex_data_server} > $out/nix-support/propagated-user-env-packages
|
2010-07-06 16:54:22 +02:00
|
|
|
''; # */
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://blueman-project.org/;
|
|
|
|
description = "GTK+-based Bluetooth Manager";
|
|
|
|
};
|
|
|
|
}
|