From d44440cec788ddf824fb9e43d0b2e22af3e67ab7 Mon Sep 17 00:00:00 2001 From: Yurii Matsiuk <24990891+ymatsiuk@users.noreply.github.com> Date: Sat, 27 Mar 2021 01:09:55 +0100 Subject: [PATCH] bluez: add disconnects hotfix (#117680) Co-authored-by: Sandro Co-authored-by: Yurii Matsiuk Co-authored-by: WORLDofPEACE --- pkgs/os-specific/linux/bluez/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/os-specific/linux/bluez/default.nix b/pkgs/os-specific/linux/bluez/default.nix index 6cb23de50a9..96f9f23e97e 100644 --- a/pkgs/os-specific/linux/bluez/default.nix +++ b/pkgs/os-specific/linux/bluez/default.nix @@ -1,5 +1,6 @@ { stdenv , lib +, fetchpatch , fetchurl , alsaLib , dbus @@ -44,6 +45,15 @@ in stdenv.mkDerivation rec { outputs = [ "out" "dev" ] ++ lib.optional doCheck "test"; + patches = [ + # Fixes https://github.com/NixOS/nixpkgs/issues/117663 + (fetchpatch { + name = "disconnect-fix.patch"; + url = "https://github.com/bluez/bluez/commit/28ddec8d6b829e002fa268c07b71e4c564ba9e16.patch"; + sha256 = "sha256-vzMf1i44e4JrpL7cXbn9oDr+3B+Glf7dPW3QDstEnEM="; + }) + ]; + postPatch = '' substituteInPlace tools/hid2hci.rules \ --replace /sbin/udevadm ${systemd}/bin/udevadm \