From 83655d69937f6d1b62e8cc791cea27026bd21249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Patrick=20Bubel?= Date: Sun, 8 Dec 2019 20:53:49 +0100 Subject: [PATCH] bluez: 5.51 -> 5.52, aliased bluezFull to bluez --- pkgs/os-specific/linux/bluez/default.nix | 75 ++++++++++++++---------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 16 +---- 3 files changed, 47 insertions(+), 45 deletions(-) diff --git a/pkgs/os-specific/linux/bluez/default.nix b/pkgs/os-specific/linux/bluez/default.nix index bc33ddd4c9bb..8024adeac64d 100644 --- a/pkgs/os-specific/linux/bluez/default.nix +++ b/pkgs/os-specific/linux/bluez/default.nix @@ -1,43 +1,58 @@ -{ stdenv, lib, fetchurl, pkgconfig, dbus, glib, alsaLib, - python3, readline, udev, libical, systemd, json_c, - enableHealth ? false, - enableMesh ? false, - enableMidi ? false, - enableNfc ? false, - enableSap ? false, - enableSixaxis ? false, - enableWiimote ? false, +{ stdenv +, lib +, fetchurl +, alsaLib +, dbus +, glib +, json_c +, libical +, pkgconfig +, python3 +, readline +, systemd +, udev }: stdenv.mkDerivation rec { - version = "5.51"; - name = "bluez-${version}"; + pname = "bluez"; + version = "5.52"; src = fetchurl { - url = "mirror://kernel/linux/bluetooth/${name}.tar.xz"; - sha256 = "1fpbsl9kkfq6mn6n0dg4h0il4c7fzhwhn79gh907k5b2kwszpvgb"; + url = "mirror://kernel/linux/bluetooth/${pname}-${version}.tar.xz"; + sha256 = "02jng21lp6fb3c2bh6vf9y7cj4gaxwk29dfc32ncy0lj0gi4q57p"; }; pythonPath = with python3.pkgs; [ - dbus-python pygobject2 pygobject3 recursivePthLoader + dbus-python + pygobject3 + recursivePthLoader ]; buildInputs = [ - dbus glib alsaLib python3 python3.pkgs.wrapPython - readline udev libical - ] ++ lib.optional enableSap json_c; + alsaLib + dbus + glib + json_c + libical + python3 + readline + udev + ]; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ + pkgconfig + python3.pkgs.wrapPython + ]; outputs = [ "out" "dev" "test" ]; - postConfigure = '' + postPatch = '' substituteInPlace tools/hid2hci.rules \ --replace /sbin/udevadm ${systemd}/bin/udevadm \ --replace "hid2hci " "$out/lib/udev/hid2hci " ''; - configureFlags = (with stdenv.lib; [ + configureFlags = [ "--localstatedir=/var" "--enable-library" "--enable-cups" @@ -48,19 +63,19 @@ stdenv.mkDerivation rec { "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system" "--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user" "--with-udevdir=${placeholder "out"}/lib/udev" - ] ++ optional enableHealth [ "--enable-health" ] - ++ optional enableMesh [ "--enable-mesh" ] - ++ optional enableMidi [ "--enable-midi" ] - ++ optional enableNfc [ "--enable-nfc" ] - ++ optional enableSap [ "--enable-sap" ] - ++ optional enableSixaxis [ "--enable-sixaxis" ] - ++ optional enableWiimote [ "--enable-wiimote" ] - ); + "--enable-health" + "--enable-mesh" + "--enable-midi" + "--enable-nfc" + "--enable-sap" + "--enable-sixaxis" + "--enable-wiimote" + ]; # Work around `make install' trying to create /var/lib/bluetooth. - installFlags = "statedir=$(TMPDIR)/var/lib/bluetooth"; + installFlags = [ "statedir=$(TMPDIR)/var/lib/bluetooth" ]; - makeFlags = "rulesdir=${placeholder "out"}/lib/udev/rules.d"; + makeFlags = [ "rulesdir=${placeholder "out"}/lib/udev/rules.d" ]; postInstall = '' mkdir -p $test/{bin,test} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index cc92b56da570..b1dd739fcea8 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -48,6 +48,7 @@ mapAliases ({ bar-xft = lemonbar-xft; # added 2015-01-16 bashCompletion = bash-completion; # Added 2016-09-28 beegfs = throw "beegfs has been removed."; # added 2019-11-24 + bluezFull = bluez; # Added 2019-12-03 bridge_utils = bridge-utils; # added 2015-02-20 bro = zeek; # added 2019-09-29 btrfsProgs = btrfs-progs; # added 2016-01-03 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 71e2ed09010b..c67aa54fe86a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15852,16 +15852,6 @@ in bluez = bluez5; - bluezFull = bluez.override { - enableHealth = true; - enableMesh = true; - enableMidi = true; - enableNfc = true; - enableSap = true; - enableSixaxis = true; - enableWiimote = true; - }; - inherit (python3Packages) bedup; bolt = callPackage ../os-specific/linux/bolt { }; @@ -25319,11 +25309,7 @@ in xteddy = callPackage ../applications/misc/xteddy { }; - xwiimote = callPackage ../misc/drivers/xwiimote { - bluez = pkgs.bluez5.override { - enableWiimote = true; - }; - }; + xwiimote = callPackage ../misc/drivers/xwiimote { }; xzoom = callPackage ../tools/X11/xzoom {};