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:
parent
33d1f480ac
commit
d44440cec7
|
@ -1,5 +1,6 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
|
, fetchpatch
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, alsaLib
|
, alsaLib
|
||||||
, dbus
|
, dbus
|
||||||
|
@ -44,6 +45,15 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
outputs = [ "out" "dev" ] ++ lib.optional doCheck "test";
|
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 = ''
|
postPatch = ''
|
||||||
substituteInPlace tools/hid2hci.rules \
|
substituteInPlace tools/hid2hci.rules \
|
||||||
--replace /sbin/udevadm ${systemd}/bin/udevadm \
|
--replace /sbin/udevadm ${systemd}/bin/udevadm \
|
||||||
|
|
Loading…
Reference in New Issue