2010-06-10 14:47:58 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, dbus, glib, libusb, alsaLib }:
|
|
|
|
|
2009-08-05 22:29:36 +02:00
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-06-10 14:47:58 +02:00
|
|
|
name = "bluez-4.65";
|
2009-08-05 22:29:36 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kernel/linux/bluetooth/${name}.tar.gz";
|
2010-06-10 14:47:58 +02:00
|
|
|
sha256 = "08j9h2cm0d4ifq8jna9lgfg37b3bncmjgxm9nirdrsr6505542sz";
|
2009-08-05 22:29:36 +02:00
|
|
|
};
|
|
|
|
|
2010-06-10 14:47:58 +02:00
|
|
|
buildInputs = [ pkgconfig dbus.libs glib libusb alsaLib ];
|
2009-08-05 22:29:36 +02:00
|
|
|
|
2009-08-10 20:24:20 +02:00
|
|
|
configureFlags = "--localstatedir=/var";
|
|
|
|
|
|
|
|
# Work around `make install' trying to create /var/lib/bluetooth.
|
|
|
|
installFlags = "statedir=$(TMPDIR)/var/lib/bluetooth";
|
|
|
|
|
2009-08-05 22:29:36 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.bluez.org/;
|
|
|
|
description = "Bluetooth support for Linux";
|
|
|
|
};
|
|
|
|
}
|