mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
36b8f37e0f
dbus can find its service file. svn path=/nixpkgs/trunk/; revision=27146
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{ stdenv, fetchurl, pkgconfig, intltool, python, pyrex, pygobject, pygtk
|
|
, notify, pythonDBus, bluez, glib, gtk, libstartup_notification
|
|
, makeWrapper, xdg_utils, obex_data_server
|
|
}:
|
|
|
|
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
|
|
|
|
mkdir -p $out/nix-support
|
|
echo ${obex_data_server} > $out/nix-support/propagated-user-env-packages
|
|
''; # */
|
|
|
|
meta = {
|
|
homepage = http://blueman-project.org/;
|
|
description = "GTK+-based Bluetooth Manager";
|
|
};
|
|
}
|