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