Commit d1be3afb authored by Ingo Reitz's avatar Ingo Reitz Committed by Alyssa Ross
Browse files

cosmic-applets: backport upstream bugfix

fixes high CPU usage and by extension battery drain
parent eb35e324
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch2,
  rustPlatform,
  libcosmicAppHook,
  just,
@@ -32,6 +33,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
  useFetchCargoVendor = true;
  cargoHash = "sha256-wWs3B5hh2DP93i+4gGDTi+7NT4bj8ULJ+fT95sXxUdg=";

  patches = [
    (fetchpatch2 {
      name = "fix-bluetooth-dbus-spam.patch";
      url = "https://github.com/pop-os/cosmic-applets/commit/b6bb982f2dace0a3d19c78b4b4247760a8010d5b.patch?full_index=1";
      hash = "sha256-S5F9rqYrB38T9R6i/n/j3s79Xeh6BMmNkC+E2kTsus4=";
    })
  ];

  nativeBuildInputs = [
    just
    pkg-config