bluez: add disconnects hotfix (#117680)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Yurii Matsiuk <ymatsiuk@users.noreply.github.com>
Co-authored-by: WORLDofPEACE <worldofpeace@protonmail.ch>
This commit is contained in:
Yurii Matsiuk 2021-03-27 01:09:55 +01:00 committed by GitHub
parent 33d1f480ac
commit d44440cec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 \