anchor.diff:    ];
   
     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 \
  
positive.code: { stdenv
  , lib
  , fetchpatch
  , fetchurl
  , alsaLib
  , dbus
  
negative.code:   ];
  in stdenv.mkDerivation rec {
    pname = "bluez";
    version = "5.58";
  
    src = fetchurl {
      url = "mirror://kernel/linux/bluetooth/${pname}-${version}.tar.xz";
      sha256 = "1wgiv8cqya6n1w5fz24cb8q401bhn5aa6s7g95l26rzblmsmw1n8";
    };
  
    buildInputs = [
  