summary refs log tree commit diff
path: root/pkgs/os-specific/linux/bluez/default.nix
blob: 2868a70e8b6f7d5d2d15d1db395203ae71bf184c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, pkgconfig, dbus, glib, libusb, alsaLib }:

assert stdenv.isLinux;
   
stdenv.mkDerivation rec {
  name = "bluez-4.69";
   
  src = fetchurl {
    url = "mirror://kernel/linux/bluetooth/${name}.tar.gz";
    sha256 = "1h4fp6l1sflc0l5vg90hzvgldlwv7rqc4cbn2z6axmxv969pmrhh";
  };

  buildInputs = [ pkgconfig dbus.libs glib libusb alsaLib ];

  configureFlags = "--localstatedir=/var";

  # Work around `make install' trying to create /var/lib/bluetooth.
  installFlags = "statedir=$(TMPDIR)/var/lib/bluetooth";

  meta = {
    homepage = http://www.bluez.org/;
    description = "Bluetooth support for Linux";
  };
}