fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl, pkgconfig, dbus, glib, libusb, alsaLib, pythonPackages, makeWrapper
2, readline, libsndfile }:
3
4assert stdenv.isLinux;
5
6let
7 inherit (pythonPackages) python;
8 pythonpath = "${pythonPackages.dbus-python}/lib/${python.libPrefix}/site-packages:"
9 + "${pythonPackages.pygobject2}/lib/${python.libPrefix}/site-packages";
10in stdenv.mkDerivation rec {
11 name = "bluez-4.101";
12
13 src = fetchurl {
14 url = "mirror://kernel/linux/bluetooth/${name}.tar.gz";
15 sha256 = "11vldy255zkmmpj0g0a1m6dy9bzsmyd7vxy02cdfdw79ml888wsr";
16 };
17
18 buildInputs =
19 [ pkgconfig dbus glib libusb alsaLib python makeWrapper
20 readline libsndfile
21 # Disables GStreamer; not clear what it gains us other than a
22 # zillion extra dependencies.
23 # gstreamer gst-plugins-base
24 ];
25
26 configureFlags = [
27 "--localstatedir=/var"
28 "--enable-cups"
29 "--with-systemdunitdir=$(out)/etc/systemd/system"
30 ];
31
32 # Work around `make install' trying to create /var/lib/bluetooth.
33 installFlags = "statedir=$(TMPDIR)/var/lib/bluetooth";
34
35 makeFlags = "rulesdir=$(out)/lib/udev/rules.d";
36
37 /* !!! Move these into a separate package to prevent Bluez from
38 depending on Python etc. */
39 postInstall = ''
40 pushd test
41 for a in simple-agent test-adapter test-device test-input; do
42 cp $a $out/bin/bluez-$a
43 wrapProgram $out/bin/bluez-$a --prefix PYTHONPATH : ${pythonpath}
44 done
45 popd
46 '';
47
48 meta = {
49 homepage = http://www.bluez.org/;
50 description = "Bluetooth support for Linux";
51 platforms = stdenv.lib.platforms.linux;
52 };
53}